It's been a long time since i wrote a shell script, so please inform me of anything wrong..
Anyways, i'm trying to write a shell script, and i need to get a start on it.
first, #/usr/bin/sh -- that is writing bourne shell, right?
Secondly, how do i get the ip address of where the script is run from?
eg: I want to run scriptname.sh, and have the output something like this:
The script was executed from: 192.168.88.99
Thanks.
Anyways, i'm trying to write a shell script, and i need to get a start on it.
first, #/usr/bin/sh -- that is writing bourne shell, right?
Secondly, how do i get the ip address of where the script is run from?
eg: I want to run scriptname.sh, and have the output something like this:
The script was executed from: 192.168.88.99
Thanks.