On 08Sep2008 21:04, Kevin J. Cummings [EMAIL PROTECTED] wrote:
Alan Evans wrote:
On Mon, Sep 8, 2008 at 6:40 AM, Steven Tardy [EMAIL PROTECTED] wrote:
kwhiskerz wrote:
man hostid
On my Fedora 9...
$ hostid
Now I haven't bothered to check any other machines, but my initial
Cameron Simpson wrote:
On 08Sep2008 21:04, Kevin J. Cummings [EMAIL PROTECTED] wrote:
Alan Evans wrote:
On Mon, Sep 8, 2008 at 6:40 AM, Steven Tardy [EMAIL PROTECTED] wrote:
kwhiskerz wrote:
man hostid
On my Fedora 9...
$ hostid
Now I haven't bothered to check any other machines,
[EMAIL PROTECTED] wrote:
Cameron Simpson wrote:
On 08Sep2008 21:04, Kevin J. Cummings [EMAIL PROTECTED]
wrote:
Alan Evans wrote:
On Mon, Sep 8, 2008 at 6:40 AM, Steven Tardy [EMAIL PROTECTED]
wrote:
kwhiskerz wrote:
man hostid
On my Fedora 9...
$ hostid
Now I haven't bothered
Ed Greshko wrote:
[EMAIL PROTECTED] wrote:
Cameron Simpson wrote:
On 08Sep2008 21:04, Kevin J. Cummings [EMAIL PROTECTED]
wrote:
Alan Evans wrote:
On Mon, Sep 8, 2008 at 6:40 AM, Steven Tardy [EMAIL PROTECTED]
wrote:
kwhiskerz wrote:
man hostid
Alan Evans wrote:
On Mon, Sep 8, 2008 at 6:40 AM, Steven Tardy [EMAIL PROTECTED] wrote:
kwhiskerz wrote:
Is there a way a script can determine which computer it is running on and
refuse to run if it is on the wrong computer?
man hostid
On my Fedora 9...
$ hostid
Now I haven't
kwhiskerz wrote:
This is OT, but perhaps someone knows an answer.
Is there a way a script can determine which computer it is running on and
refuse to run if it is on the wrong computer?
if [ some case ]; then
run
else
don't run
fi
man hostid
--
fedora-list mailing list
On Mon, Sep 8, 2008 at 6:40 AM, Steven Tardy [EMAIL PROTECTED] wrote:
kwhiskerz wrote:
Is there a way a script can determine which computer it is running on and
refuse to run if it is on the wrong computer?
man hostid
On my Fedora 9...
$ hostid
Now I haven't bothered to check any
Alan Evans wrote:
On Mon, Sep 8, 2008 at 6:40 AM, Steven Tardy [EMAIL PROTECTED] wrote:
kwhiskerz wrote:
Is there a way a script can determine which computer it is running on and
refuse to run if it is on the wrong computer?
man hostid
On my Fedora 9...
$ hostid
Now I haven't
This is OT, but perhaps someone knows an answer.
Is there a way a script can determine which computer it is running on and
refuse to run if it is on the wrong computer?
if [ some case ]; then
run
else
don't run
fi
--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe:
On Sat, Sep 06, 2008 at 02:27:27AM -0600, kwhiskerz wrote:
This is OT, but perhaps someone knows an answer.
Is there a way a script can determine which computer it is running on and
refuse to run if it is on the wrong computer?
if [ some case ]; then
if [ $(hostname -s) = puter ]; then
if [ some case ]; then
if [ $(hostname -s) = puter ]; then
echo running
fi
I'd check how the hostname command runs on your computer,
See what happens on my F8 system:
[EMAIL PROTECTED] ~]$ hostname
confianza
[EMAIL PROTECTED] ~]$ hostname -s
localhost
[EMAIL PROTECTED] ~]$
the -s
The problem is that both computers return hostname = localhost, so that won't
work. IP address is not always possible, as the network might not be up,
especially on the laptop.
How would I check the HWaddress (MAC)?
As ifconfig returns a whole list of things:
1.How can I isolate just
A suggestion I found on the net is to test for the value of md5sum
/etc/passwd. Now, does this stay the same, even if a password is added or
changed? Is it unique to a computer? And also, how do I isolate the number and
strip off the space and /etc/passwd from the result?
--
fedora-list
On Sat, 2008-09-06 at 11:54 -0600, kwhiskerz wrote:
The problem is that both computers return hostname = localhost, so that won't
work. IP address is not always possible, as the network might not be up,
especially on the laptop.
How would I check the HWaddress (MAC)?
As ifconfig returns
kwhiskerz wrote:
The problem is that both computers return hostname = localhost, so that won't
work. IP address is not always possible, as the network might not be up,
especially on the laptop.
How would I check the HWaddress (MAC)?
As ifconfig returns a whole list of things:
1.How can I
On 06Sep2008 12:01, kwhiskerz [EMAIL PROTECTED] wrote:
| A suggestion I found on the net is to test for the value of md5sum
| /etc/passwd.
That's horrible. Unreliable, etc.
| Now, does this stay the same, even if a password is added or
| changed?
With shadow passwords, yes. But if someone:
I will see if I can make the HWaddr test work.
Thanks, those are great suggestions.
--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
kwhiskerz wrote:
The problem is that both computers return hostname = localhost, so that won't
work. IP address is not always possible, as the network might not be up,
especially on the laptop.
How would I check the HWaddress (MAC)?
As ifconfig returns a whole list of things:
1.How can I
Tried it on both computers. Works great! Neither will run the other's script.
Fantastic!
THANKS :-)
--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
19 matches
Mail list logo