logging out leaving a command running

jim barnes j10152 at gmail.com
Mon Jan 23 05:57:20 UTC 2006


On Sunday 22 January 2006 10:03 pm, Byron Poland wrote:
> I'm on the road for work.  I have a mythtv box set up at home
> recording HD content.  I can ssh into my network, and execute a script
> on my ubuntu workstation that transcodes shows I chose.  I have to
> stay logged in for the script to continue.
>
>  I want to beable to log in real quick start the command log out with
> the confidence that the script will continue.
> Any suggestions?


From man bash:
If a command is terminated by the control operator &, the shell executes the 
command in the background in a subshell. The shell does not wait for the 
command to finish, and the return status is 0

script &
exit

That's all!

-- 
Jim Barnes
--
Certainly the game is rigged. Don't let that stop you; 
if you don't bet, you can't win.            -Lazarus Long 
--
Linux 2.6.12-10-686




More information about the ubuntu-users mailing list