CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Remote kickoff of a bash script?

 



grapler
Deleted

Aug 25, 2000, 1:48 PM

Post #1 of 1 (317 views)
Remote kickoff of a bash script? Can't Post

Ok, I've played aroundin perl and wrote a few programs already, but this one is stumping me....

Scenario: I have a communication software program (roger wilco) that I run on my server. I am running the program itself from a looping bash script that monitors that program's activity. I can keep it running via telnet using 'nohup ./run_rwbs'. I wrote a perl script that can display stats of the server of tell if it's down via a handlerror sub. I am trying to modify it further to kick the job back off via this script.

Problem: I have tried exec(), system() and syscall() to run the bash script to no avail. I can get the server runing via an exec('nohup ./rwbs') but it dies as soon as the anon. connection is closed (ie. the browser closes the connection). I need to try to find a way to either run the bash script or the prog itself directly via the handlerror sub. I've read through most of the resources I could find but still can't seem to get this to work right. Any help would be appreciated.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives