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
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
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
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:
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
nal Message-
> From: keith wong [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 21, 2005 4: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 - &
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
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
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
205
-Original Message-
From: keith wong [mailto:[EMAIL PROTECTED]
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
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 make:
1. SSH to remote.
2. su to our user.
3. tar all backup and save
11 matches
Mail list logo