Re: identify caller host

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Johan,

One dirty and dirty (and a bit quick) way is to call your script by
setting an env variable before:


user@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: func-list-bounces@xxxxxxxxxx [mailto:func-list-bounces@xxxxxxxxxx]
On Behalf Of Johan Huysmans
Sent: Monday, March 22, 2010 4:06 PM
To: func-list@xxxxxxxxxx
Subject:  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
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list

_______________________________________________
Func-list mailing list
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list

[Index of Archives]     [Fedora Users]     [Linux Networking]     [Fedora Legacy List]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux