Re: ssh and many command line
From: Elie De Brauwer (elie.de.brauwer_at_pandora.be)
Date: 08/12/03
- Previous message: Colin Watson: "Re: ssh and many command line"
- In reply to: François Chenais: "Re: ssh and many command line"
- Next in thread: Henning Moll: "Re: ssh and many command line"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: François Chenais <francois@chenais.net> Date: Tue, 12 Aug 2003 15:12:58 +0200
On Tuesday 12 August 2003 14:19, François Chenais wrote:
> Can U try this ?
>
>
> ssh helios@kafka "for name in `cat /etc/passwd | awk -F : '{ print $1}'`;
> do echo $name; crontab -u name -l; done;"
>
>
I'm starting to get your point, it seems that when starting to use the for or
variables things start to get strange
-> this works
helios@kafka:~$ for name in `cat /etc/passwd | sed s/:.*//`; do echo $name;
done
root
daemon
bin
sys
sync
games
man
-> works also
helios@kafka:~$ ssh void@localhost "echo \"`cat /etc/passwd | sed s/:.*//`\""
void@localhost's password:
root
daemon
bin
sys
sync
games
man
lp
mail
news
uucp
proxy
postgres
-> but using bash builtins fails.
Anybody else and idea ?
-- To UNSUBSCRIBE, email to debian-user-request@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
- Previous message: Colin Watson: "Re: ssh and many command line"
- In reply to: François Chenais: "Re: ssh and many command line"
- Next in thread: Henning Moll: "Re: ssh and many command line"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|