ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas, Lee E" <Lee.E.Tho...@erac.com>
Subject RE: Backup before deploy
Date Tue, 22 Nov 2005 17:52:42 GMT
 
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 user who you
are wanting to run the commands as. The telnet task can be used to run
the backup commands. 

Thanks.

Lee 

-----Original Message-----
From: Bozorgdadeh, Afshin [mailto:AFSHIN.BOZORGZADEH@fmr.com]
Sent: Tuesday, November 22, 2005 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 work for you on the specific server. At this
point you want to pass the files to the script "owned by the privileged
user" and the script does the tar and compressing.

Best Regards
Afshin Bozorgzadeh
>Fidelity Investments Brokerage Company FBCT ClearCase Release Engineer
Afshin.Bozorgzadeh@fmr.com
Phone           603-791-5596
BlackBerry  603-365-0205

-----Original Message-----
From: keith wong [mailto:ckeiwong@yahoo.com]
Sent: Monday, November 21, 2005 7:02 PM
To: user@ant.apache.org
Subject: Backup before deploy

Hello,
I need control remote host thru ssh to tar all backup file, but I get
into problem of "su - " command after ant <sshexec> in. I not sure how
to keep ssh session and process two steps command to archive. 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.
 
 Thank you for any input.
 
 Regards,
 Keith


		
__________________________________
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional
commands, e-mail: user-help@ant.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional
commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message