Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 05-11-2007, 02:09 AM   #1
Registered: Jan 2002
Posts: 162

Rep: Reputation: 30
Must be easy - need to trigger SH script in apache

I have a simple SH script which does a long backup. If I wire this into ExecCGI the caller has to hang around while it finishes. What I want is the caller to issue the same simple GET statement but then return, whilst the backup job then continues. Whats the trick please?
Old 05-11-2007, 07:12 AM   #2
Registered: Oct 2006
Location: Melbourne, Australia
Distribution: ArchLinux, ArchServer, Fedora, CentOS
Posts: 449

Rep: Reputation: 34
run it using 'nohup' and background it?

nohup /path/to/cool/script &
nohup will stop it dying when control returns to Apache, and the & will background it so control WILL return to Apache


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I trigger a shell script from a windows samba client? baikonur Linux - Networking 4 08-01-2006 04:03 AM
How do I trigger ctrl+z via a script? closet geek Linux - General 1 05-31-2005 06:53 PM
trigger easy urpmi landroni Linux - Games 7 04-21-2005 04:38 PM
Trigger script by message in /var/log/messages? Zoidy Linux - Software 3 01-17-2004 12:03 AM
Can I get an incoming email to trigger a script file? davee Linux - General 2 10-16-2003 02:45 PM > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 04:50 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration