LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 05-11-2007, 03:09 AM   #1
ericcarlson
Member
 
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, 08:12 AM   #2
fukawi2
Member
 
Registered: Oct 2006
Location: Melbourne, Australia
Distribution: ArchLinux, ArchServer, Fedora, CentOS
Posts: 449

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

ie:
Code:
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
 
  


Reply


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 05:03 AM
How do I trigger ctrl+z via a script? closet geek Linux - General 1 05-31-2005 07:53 PM
trigger easy urpmi landroni Linux - Games 7 04-21-2005 05:38 PM
Trigger script by message in /var/log/messages? Zoidy Linux - Software 3 01-17-2004 01:03 AM
Can I get an incoming email to trigger a script file? davee Linux - General 2 10-16-2003 03:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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

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