image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X Server

Reply
 
Thread Tools
  #1  
Old January 29th, 2008, 02:33 PM
Registered User
 
Join Date: Jan 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
justinfra is on a distinguished road
Processes started in terminal end when terminal closed

Like the title says.

I'm running Symantec Backup Agent on our mac osx server. I start the agent in the terminal (./agent.be). It returns a notification that it started the service, however, it doesn't return to the prompt. Closing the terminal gives a warning that the process will be closed if the terminal is closed. Closing it does kill the process. Ctrl+c to return to the prompt also kills the process. So it's as if once the process is started in the terminal, nothing can be altered.

I am not much of a mac guy so please forgive me if this is a stupid question.

Anyone have any advice on how to handle this so the process is ALWAYS running?
Reply With Quote
  #2  
Old January 29th, 2008, 07:35 PM
macbri's Avatar
Mac (r)evolution
 
Join Date: Jun 2005
Location: Ireland
Posts: 250
Thanks: 1
Thanked 0 Times in 0 Posts
macbri is on a distinguished road
To get the job to run in the background (and return a prompt) do:

./agent.be &

Now if you quit the terminal the process should stay running. You can verify by opening a new terminal and:

ps -ax | grep agent.be

As to having it run automatically at boot time, did you try rebooting the server after installation? The Q&A on this site seem to suggest that (see questions 3,4,5).
Reply With Quote
  #3  
Old February 3rd, 2008, 09:20 PM
Registered User
 
Join Date: Mar 2002
Location: Connecticut USA
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
thoule is on a distinguished road
screen

Even a background command will be killed sometimes when the shell is closed. Instead, use the 'screen' command. that'll open a virtual window.

Type screen at a command prompt to open a virtual session. Run your program, then press Control-A, then Control-D to break away from the screen. To resume the screen, open another terminal window and type screen -r and you'll be reconnected.

Todd
__________________
******************************
Wesleyan University
Macintosh Specialist
Reply With Quote
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


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


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.