[OT]: bash command help - nohup

2009-10-30 Thread Dan Track
Hi, I'm trying to run mutliple commands from the command line while using nohup. But I can't seem to get the syntax right, can someone please correct this for me nohup cmd 1;cm2;cmd3 All i get is that cmd1 runs from wiht nohup but the rest run in my current shell. I'd like all to be run with

Re: : bash command help - nohup

2009-10-30 Thread Cameron Simpson
On 30Oct2009 09:42, Dan Track dan.tr...@gmail.com wrote: | Hi, | | I'm trying to run mutliple commands from the command line while using | nohup. But I can't seem to get the syntax right, can someone please | correct this for me | | nohup cmd 1;cm2;cmd3 | | All i get is that cmd1 runs from wiht

Re: : bash command help - nohup

2009-10-30 Thread Dan Track
On Fri, Oct 30, 2009 at 9:56 AM, Cameron Simpson c...@zip.com.au wrote: On 30Oct2009 09:42, Dan Track dan.tr...@gmail.com wrote: | Hi, | | I'm trying to run mutliple commands from the command line while using | nohup. But I can't seem to get the syntax right, can someone please | correct

Re: : bash command help - nohup

2009-10-30 Thread Suvayu Ali
Hi Dan, On Friday 30 October 2009 03:11 AM, Dan Track wrote: On Fri, Oct 30, 2009 at 9:56 AM, Cameron Simpsonc...@zip.com.au wrote: On 30Oct2009 09:42, Dan Trackdan.tr...@gmail.com wrote: | Hi, | | I'm trying to run mutliple commands from the command line while using | nohup. But I can't

Re: : bash command help - nohup

2009-10-30 Thread Patrick O'Callaghan
On Fri, 2009-10-30 at 08:02 -0700, Suvayu Ali wrote: Hi Dan, On Friday 30 October 2009 03:11 AM, Dan Track wrote: On Fri, Oct 30, 2009 at 9:56 AM, Cameron Simpsonc...@zip.com.au wrote: On 30Oct2009 09:42, Dan Trackdan.tr...@gmail.com wrote: | Hi, | | I'm trying to run mutliple

Re: : bash command help - nohup

2009-10-30 Thread Matthew Saltzman
On Fri, 2009-10-30 at 10:35 -0430, Patrick O'Callaghan wrote: Screen is not an option if you want to set up a long-running job and log out. Why not? That's the first thing I think of when I want to do just that. 'at' also works to start a job not connected to a terminal. --

Re: : bash command help - nohup

2009-10-30 Thread Patrick O'Callaghan
On Fri, 2009-10-30 at 14:19 -0400, Matthew Saltzman wrote: On Fri, 2009-10-30 at 10:35 -0430, Patrick O'Callaghan wrote: Screen is not an option if you want to set up a long-running job and log out. Why not? That's the first thing I think of when I want to do just that. You're right.

Re: : bash command help - nohup

2009-10-30 Thread Rick Stevens
Matthew Saltzman wrote: On Fri, 2009-10-30 at 10:35 -0430, Patrick O'Callaghan wrote: Screen is not an option if you want to set up a long-running job and log out. Why not? That's the first thing I think of when I want to do just that. I concur. That is one of the main reasons screen

Re: : bash command help - nohup

2009-10-30 Thread inode0
On Fri, Oct 30, 2009 at 3:32 PM, Rick Stevens ri...@nerd.com wrote: Matthew Saltzman wrote: On Fri, 2009-10-30 at 10:35 -0430, Patrick O'Callaghan wrote: Screen is not an option if you want to set up a long-running job and log out. Why not?  That's the first thing I think of when I want to

Re: : bash command help - nohup

2009-10-30 Thread Suvayu Ali
Hi Patrick, Patrick O'Callaghan wrote: On Fri, 2009-10-30 at 08:02 -0700, Suvayu Ali wrote: I often find nohup very unreliable. I have had jobs fail submitted with nohup. I was thinking of switching to using screen. Maybe you could give that a try? Screen is not an option if you want to

Re: : bash command help - nohup

2009-10-30 Thread fred smith
On Fri, Oct 30, 2009 at 03:38:34PM -0700, Suvayu Ali wrote: Hi Patrick, Patrick O'Callaghan wrote: On Fri, 2009-10-30 at 08:02 -0700, Suvayu Ali wrote: I often find nohup very unreliable. I have had jobs fail submitted with nohup. I was thinking of switching to using screen. Maybe you

Re: : bash command help - nohup

2009-10-30 Thread Patrick O'Callaghan
On Fri, 2009-10-30 at 15:38 -0700, Suvayu Ali wrote: Hi Patrick, Patrick O'Callaghan wrote: On Fri, 2009-10-30 at 08:02 -0700, Suvayu Ali wrote: I often find nohup very unreliable. I have had jobs fail submitted with nohup. I was thinking of switching to using screen. Maybe you could

Re: Command help?

2008-09-26 Thread Bradley
Patrick O'Callaghan wrote: On Thu, 2008-09-25 at 14:24 -0700, Rick Stevens wrote: Whoops! In my previous comment on this, I neglected to mention you really need to run /etc/rc.d/rc with the desired runlevel to force the /etc/rc.d/rcX.d stuff to go. In other words, if you do telinit 3,

Re: Command help?

2008-09-26 Thread Rick Stevens
Bradley wrote: Patrick O'Callaghan wrote: On Thu, 2008-09-25 at 14:24 -0700, Rick Stevens wrote: Whoops! In my previous comment on this, I neglected to mention you really need to run /etc/rc.d/rc with the desired runlevel to force the /etc/rc.d/rcX.d stuff to go. In other words, if you do

Re: Command help?

2008-09-26 Thread Aaron Konstam
On Fri, 2008-09-26 at 12:56 -0700, Rick Stevens wrote: Bradley wrote: Patrick O'Callaghan wrote: On Thu, 2008-09-25 at 14:24 -0700, Rick Stevens wrote: Whoops! In my previous comment on this, I neglected to mention you really need to run /etc/rc.d/rc with the desired runlevel to

Re: Command help?

2008-09-26 Thread Rick Stevens
Aaron Konstam wrote: On Fri, 2008-09-26 at 12:56 -0700, Rick Stevens wrote: Bradley wrote: Patrick O'Callaghan wrote: On Thu, 2008-09-25 at 14:24 -0700, Rick Stevens wrote: Whoops! In my previous comment on this, I neglected to mention you really need to run /etc/rc.d/rc with the desired

Re: Command help?

2008-09-26 Thread Bradley
Aaron Konstam wrote: On Fri, 2008-09-26 at 12:56 -0700, Rick Stevens wrote: Bradley wrote: Patrick O'Callaghan wrote: On Thu, 2008-09-25 at 14:24 -0700, Rick Stevens wrote: Whoops! In my previous comment on this, I neglected to mention you really need to run

Re: Command help?

2008-09-26 Thread Chris Tyler
On Fri, 2008-09-26 at 14:16 -0700, Rick Stevens wrote: AFAIK, telinit does NOT fire up the /etc/rc.d stuff by itself and that's how the K* and S* stuff get run. As has been pointed out what you say is not true. Changes runlevel should cause the correct rc* files to run. Check the man page

Re: Command help?

2008-09-26 Thread Rick Stevens
Chris Tyler wrote: On Fri, 2008-09-26 at 14:16 -0700, Rick Stevens wrote: AFAIK, telinit does NOT fire up the /etc/rc.d stuff by itself and that's how the K* and S* stuff get run. As has been pointed out what you say is not true. Changes runlevel should cause the correct rc* files to run.

Re: Command help?

2008-09-26 Thread Patrick O'Callaghan
On Fri, 2008-09-26 at 15:30 -0700, Rick Stevens wrote: I believe you and yes, it does work. Doesn't explain why daemons that should be shut down aren't. I'll have to investigate this further. That would depend on what each individual script is doing. poc -- fedora-list mailing list

Re: Command help?

2008-09-25 Thread Bradley
Aldo Foot wrote: On Wed, Sep 24, 2008 at 12:58 PM, Bradley [EMAIL PROTECTED] wrote: Okay, I am starting to do some more advanced automated maintenance on my system but can't find a nifty way to do something and was wondering if anyone out there can help me with this. I am configuring

Re: Command help?

2008-09-25 Thread Aldo Foot
On Thu, Sep 25, 2008 at 6:57 AM, Bradley [EMAIL PROTECTED] wrote: Thanks for the input but, unfortunately, this doesn't give the results that I need. I gave up and configured one of the run levels for doing the needed tasks and have the system reboot into that run level where it does what I

Re: Command help?

2008-09-25 Thread Mikkel L. Ellertson
Bradley wrote: Aldo Foot wrote: On Wed, Sep 24, 2008 at 12:58 PM, Bradley [EMAIL PROTECTED] wrote: Okay, I am starting to do some more advanced automated maintenance on my system but can't find a nifty way to do something and was wondering if anyone out there can help me with this.

Re: Command help?

2008-09-25 Thread Rick Stevens
Bradley wrote: Aldo Foot wrote: On Wed, Sep 24, 2008 at 12:58 PM, Bradley [EMAIL PROTECTED] wrote: Okay, I am starting to do some more advanced automated maintenance on my system but can't find a nifty way to do something and was wondering if anyone out there can help me with this. I

Re: Command help?

2008-09-25 Thread Rick Stevens
Bradley wrote: Instead of rebooting, you could use telinit to change the run level. It will stop/start services as necessary to match the configuration for that run level. Mikkel Actually, I tried that but for some reason telinit doesn't work correctly. It doesn't shut down or start

Re: Command help?

2008-09-25 Thread Aldo Foot
On Thu, Sep 25, 2008 at 11:35 AM, Bradley [EMAIL PROTECTED] wrote: Instead of rebooting, you could use telinit to change the run level. It will stop/start services as necessary to match the configuration for that run level. Mikkel Actually, I tried that but for some reason telinit doesn't

Re: Command help?

2008-09-25 Thread Rick Stevens
Aldo Foot wrote: On Thu, Sep 25, 2008 at 11:35 AM, Bradley [EMAIL PROTECTED] wrote: Instead of rebooting, you could use telinit to change the run level. It will stop/start services as necessary to match the configuration for that run level. Mikkel Actually, I tried that but for some reason

Re: Command help?

2008-09-25 Thread Patrick O'Callaghan
On Thu, 2008-09-25 at 14:24 -0700, Rick Stevens wrote: Whoops! In my previous comment on this, I neglected to mention you really need to run /etc/rc.d/rc with the desired runlevel to force the /etc/rc.d/rcX.d stuff to go. In other words, if you do telinit 3, then you should also do

Command help?

2008-09-24 Thread Bradley
Okay, I am starting to do some more advanced automated maintenance on my system but can't find a nifty way to do something and was wondering if anyone out there can help me with this. I am configuring my system to do an automated backup of all my data (2 to 4 hours per week) but need it to

Re: Command help?

2008-09-24 Thread Aldo Foot
On Wed, Sep 24, 2008 at 12:58 PM, Bradley [EMAIL PROTECTED] wrote: Okay, I am starting to do some more advanced automated maintenance on my system but can't find a nifty way to do something and was wondering if anyone out there can help me with this. I am configuring my system to do an