LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-07-2008, 03:14 AM   #1
grayFalcon
Member
 
Registered: Jan 2003
Distribution: Debian
Posts: 69

Rep: Reputation: 15
disown problem (sh: disown: not found)


Hello everybody!

I'm writing this django app that does different (time-consuming) things when requested by the user by calling third-party apps as:
Code:
dosomething > progress & disown
and then, when status is requested, parsing the progress file. I need the disown, as otherwise the system call won't return until the process is ready.

This works beautifully, except for one thing: When "dosomething" is "python script.py", I get the message:
Code:
sh: disown: not found
The script executes all right, but the system call returns only when the script is ready. Google knows nothing about this by the way.

I tried wrapping this into a shell script and disowning that, and I wrote a wrapper in C that only does this one system call and tried disowning the wrapper. And I always get this "disown: not found".

So, any idea what may be happening and how I can disown this python script? Or, failing that, a better idea for doing what I need to do (starting time-consuming third-party apps on the server when requested through a web interface)?

Thanks a lot in advance,
-Wojtek
 
Old 01-07-2008, 03:44 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
'disown' is a BASH shell built-in. How about handing off tasks to 'at'?
 
Old 01-07-2008, 06:20 AM   #3
grayFalcon
Member
 
Registered: Jan 2003
Distribution: Debian
Posts: 69

Original Poster
Rep: Reputation: 15
Thanks! This looks pretty much like it's perfectly what I need!
 
  


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
Problem found after installation satimis *BSD 3 05-25-2007 09:50 AM
How to create a bash script to automatically disown a process. jon_k Linux - Software 5 06-19-2005 05:53 AM
No Medium Found Problem exodus98 Linux - Hardware 1 11-13-2003 07:22 PM
Packages not found problem comtex Red Hat 11 09-18-2003 03:27 PM
Command not found problem rudon Linux - Newbie 3 04-16-2003 09:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:30 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