This script, when run as root, gives me this:
BLS #./psycho
+ umask 0022
+ mkdir /tmp/mindy
+ chown nobody.nobody /tmp/mindy
+ set +e
+ su -p nobody -s /sbin/bash
+ cd /tmp/mindy
+ shazbot is not a valid command
/bin/sh: line 6: shazbot: command not found
+ (( 0!=0 ))
+ echo 'should not ever get
On Friday 20 July 2007, Barbarian Mama wrote:
> how can know subnet address of the machine using bash scripting .. if i use
> ifconfig it only displays ipaddress and subnet mask. I you have to
> calculate subnet address then you have to do binary AND operation on
> ipaddress AND subnet mask to kno
Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: i686-pc-linux-gnu-gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/loc
Hi All,
how can know subnet address of the machine using bash scripting .. if i use
ifconfig it only displays ipaddress and subnet mask. I you have to calculate
subnet address then you have to do binary AND operation on ipaddress AND
subnet mask to know subnet address . Can any one help me to kno