Script Test [OT]

Steven Tardy sjt5 at its.msstate.edu
Mon Sep 8 13:40:50 UTC 2008


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




More information about the fedora-list mailing list