Hi Johan,
One dirty and dirty (and a bit quick) way is to call your script by
setting an env variable before:
u...@server $ func "othermachine*" call command run "export
toto=$(hostname); echo \$toto"
('othermachine', [0, 'server\n', ''])
Have a nice day,
Nicolas Di Pietro
-----Original Message-----
From: [email protected] [mailto:[email protected]]
On Behalf Of Johan Huysmans
Sent: Monday, March 22, 2010 4:06 PM
To: [email protected]
Subject: [Func-list] identify caller host
Hi All,
I have several scripts placed on each client hosts which are called by
func. (through: call command run) One of those scripts needs to know
which server performed the func command.
Is there a way how I can see which server (hostname or ip) initiated the
command?
thx!
Johan Huysmans
_______________________________________________
Func-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/func-list
_______________________________________________
Func-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/func-list