Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

system command via perl script??
Hello,

I currently develop in PHP but I have hit a wall.  Is it possible to run
this command and variations of it

killall -USR2 appname

via a web script in perl??  I have an app that runs on my development server
and cant get PHP system() or exec() to work.  If it is possible please
direct me to some info on it.

--
Eric Haskins
RackSPEED.Net
WebHosting from $4.99/month
Dedicated Servers
Multiple UpStream Providers



Report this thread to moderator Post Follow-up to this message
Old Post
Eric Haskins
10-05-04 01:57 AM


Re: system command via perl script??
In article <QKj8d.49986$Si.9769@tornado.tampabay.rr.com>, Eric Haskins
<hostmaster_s_p_a_m@rackspeed.net> wrote:

> Hello,
>
>    I currently develop in PHP but I have hit a wall.  Is it possible to ru
n
> this command and variations of it
>
> killall -USR2 appname

Yes.

>
> via a web script in perl??  I have an app that runs on my development serv
er
> and cant get PHP system() or exec() to work.  If it is possible please
> direct me to some info on it.

Perl has a built-in kill function, but it works on PID numbers, not
command names. You can also run the system version of killall with
Perl's system function. If you have access to a perl installation, you
can get more information with

perldoc -f kill
perldoc -f system


A quick search of CPAN (http://search.cpan.org) yields the
Proc::ProcessTable module with its associated Proc::Killall module.
Those might prove useful. If they are installed in your perl, do

perldoc Proc::ProcessTable
perldoc Proc::Killall

If that yields nothing, they are probably not installed. You can
install modules with

perl -MCPAN -e shell

Report this thread to moderator Post Follow-up to this message
Old Post
Jim Gibson
10-05-04 01:57 AM


Re: system command via perl script??
Eric Haskins wrote:

> Hello,
>
>    I currently develop in PHP but I have hit a wall.  Is it possible to ru
n
> this command and variations of it
>
> killall -USR2 appname
>
> via a web script in perl??  I have an app that runs on my development serv
er
> and cant get PHP system() or exec() to work.

Are you having problems with system() in general, or just with killall?
If it is the latter, then it is probably because the web server is
running with a different UID than the app is running with.
-Joe

Report this thread to moderator Post Follow-up to this message
Old Post
Joe Smith
10-05-04 01:56 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL Programming archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:51 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.