Re: Backup before deploy

2005-11-23 Thread Steve Loughran
Bozorgdadeh, Afshin wrote: My last 2cents You could get the job done or you could just brain storm about it. When you are su to a different user you are creating a chilled process, so your script has to have a way to communicate with a child process. In the good old day there was a scripting lang

Re: Backup before deploy

2005-11-22 Thread Gisbert Amm
keith wong wrote: Here is steps I need to make: 1. SSH to remote. 2. su to our user. 3. tar all backup and save it to privielge restricted location allowed from that "su"ed user. 4. compress the tar to save space. You could pass your tar command to su with the -c option (-c, --commman

RE: Backup before deploy

2005-11-22 Thread Bozorgdadeh, Afshin
nk you Rob for all your help. Afshin -Original Message- From: Anderson, Rob (Global Trade) [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 22, 2005 1:48 PM To: Bozorgdadeh, Afshin Cc: Ant Users List Subject: RE: Backup before deploy I have no idea what you are trying to say, but

RE: Backup before deploy

2005-11-22 Thread Anderson, Rob (Global Trade)
I have no idea what you are trying to say, but I'm glad I could help. You're welcome. -Rob A > -Original Message- > From: Bozorgdadeh, Afshin [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 22, 2005 9:57 AM > To: Anderson, Rob (Global Trade) > Subject:

RE: Backup before deploy

2005-11-22 Thread Thomas, Lee E
I'll try this again... I don't believe my first reply made it. Lee -Original Message- From: Thomas, Lee E Sent: Tuesday, November 22, 2005 9:43 AM To: 'Ant Users List' Subject: RE: Backup before deploy How about using ant's telnet task and telneting in as the

RE: Backup before deploy

2005-11-22 Thread Anderson, Rob (Global Trade)
You should setup sudo on the remote side to allow you to execute the commands you need to run as the user you need to run them as. The command in the ant sshexec task would look something like this: Check out the sudo manual... http://www.courtesan.com/sudo/ -Rob Anderson > -Original Me

RE: Backup before deploy

2005-11-22 Thread Bozorgdadeh, Afshin
PROTECTED] Phone 603-791-5596 BlackBerry 603-365-0205 -Original Message- From: Jakob Fix [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 22, 2005 10:56 AM To: Ant Users List Subject: Re: Backup before deploy Keith, On 22/11/05, keith wong <[EMAIL PROTECTED]> wrote: &g

Re: Backup before deploy

2005-11-22 Thread Jakob Fix
Keith, On 22/11/05, keith wong <[EMAIL PROTECTED]> wrote: > Hello, > I need control remote host thru ssh to tar all backup > file, but I get into problem of "su - " command after > ant in. I not sure how to keep ssh session > and process two steps command to archive. Here is > steps I need to mak

RE: Backup before deploy

2005-11-22 Thread Thomas, Lee E
9:32 AM To: Ant Users List Subject: RE: Backup before deploy Hi Keith, I am new to Ant, but as far as the UNIX goes, when you "su - " you will lose all your shell !!! So what could I do ??? The easy way out is to write a simple shell script with the privileged user does your entire grunt

RE: Backup before deploy

2005-11-22 Thread Bozorgdadeh, Afshin
Hi Keith, I am new to Ant, but as far as the UNIX goes, when you "su - " you will lose all your shell !!! So what could I do ??? The easy way out is to write a simple shell script with the privileged user does your entire grunt work for you on the specific server. At this point you want to pass the