Re: [CentOS] Bash Script help...

2009-05-08 Thread Kwan Lowe
On Fri, May 8, 2009 at 1:12 AM, Jason Todd Slack-Moehrle wrote: > > I need to write a script that I will manually start (or a cron job in > future) but I need it to do a number of things in order one after > another.  How do i do that so everything gets dont as the steps depend > on each other. >

Re: [CentOS] Bash Script help...

2009-05-08 Thread Andrew Colin Kissa
The ABS guide http://tldp.org/LDP/abs/html/ and the GNU bash manual http://www.gnu.org/software/bash/manual/ should help On 08 May 2009, at 6:58 PM, MHR wrote: > On Thu, May 7, 2009 at 10:12 PM, Jason Todd Slack-Moehrle > wrote: >> Hi All, >> >> I need to write a script that I will manu

Re: [CentOS] Bash Script help...

2009-05-08 Thread Julian Thomas
On Fri, 8 May 2009 09:58:46 -0700 MHR wrote: > > >If you're asking these kinds of questions, a basic primer on how to >use bash, and shell scripting in general, seems to be in order. It >never hurts to have good manuals around if you are not thoroughly >familiar with a particular paradigm, and it

Re: [CentOS] Bash Script help...

2009-05-08 Thread MHR
On Thu, May 7, 2009 at 10:12 PM, Jason Todd Slack-Moehrle wrote: > Hi All, > > I need to write a script that I will manually start (or a cron job in > future) but I need it to do a number of things in order one after > another.  How do i do that so everything gets dont as the steps depend > on eac

Re: [CentOS] Bash Script help...

2009-05-08 Thread Luciano Miguel Ferreira Rocha
On Thu, May 07, 2009 at 10:12:59PM -0700, Jason Todd Slack-Moehrle wrote: > Hi All, > > I need to write a script that I will manually start (or a cron job in > future) but I need it to do a number of things in order one after > another. How do i do that so everything gets dont as the steps de

Re: [CentOS] Bash Script help...

2009-05-07 Thread Kumar, Ashish
> I need to write a script that I will manually start (or a cron job in > future) but I need it to do a number of things in order one after > another.  How do i do that so everything gets dont as the steps depend > on each other. > > Example: > > cd /system_backups/ # timestamp in -MM-DD forma

Re: [CentOS] Bash Script help...

2009-05-07 Thread John R Pierce
Jason Todd Slack-Moehrle wrote: > Hi All, > > I need to write a script that I will manually start (or a cron job in > future) but I need it to do a number of things in order one after > another. How do i do that so everything gets dont as the steps depend > on each other. > > Example: > > cd

Re: [CentOS] Bash Script help...

2009-05-07 Thread Les Mikesell
Jason Todd Slack-Moehrle wrote: > Hi All, > > I need to write a script that I will manually start (or a cron job in > future) but I need it to do a number of things in order one after > another. How do i do that so everything gets dont as the steps depend > on each other. A few commands ca

Re: [CentOS] Bash Script help...

2009-05-07 Thread John R. Dennison
On Thu, May 07, 2009 at 10:12:59PM -0700, Jason Todd Slack-Moehrle wrote: > > I need to write a script that I will manually start (or a cron job in > future) but I need it to do a number of things in order one after > another. How do i do that so everything gets dont as the steps depend > o

Re: [CentOS] Bash Script help...

2009-05-07 Thread Ray Van Dolson
On Thu, May 07, 2009 at 10:12:59PM -0700, Jason Todd Slack-Moehrle wrote: > Hi All, > > I need to write a script that I will manually start (or a cron job in > future) but I need it to do a number of things in order one after > another. How do i do that so everything gets dont as the steps de

Re: [CentOS] Bash Script help...

2009-05-07 Thread Rajagopal Swaminathan
Jason Todd Slack-Moehrle writes: > > Hi All, > > I need to write a script that I will manually start (or a cron job in > future) but I need it to do a number of things in order one after > another. How do i do that so everything gets dont as the steps depend > on each other. > > Example

[CentOS] Bash Script help...

2009-05-07 Thread Jason Todd Slack-Moehrle
Hi All, I need to write a script that I will manually start (or a cron job in future) but I need it to do a number of things in order one after another. How do i do that so everything gets dont as the steps depend on each other. Example: cd /system_backups/ tar cvf apache-conf.tar /etc/h