http://qs321.pair.com?node_id=1171520

sakshi has asked for the wisdom of the Perl Monks concerning the following question:

i am using perl script which is scheduled on crontab..its running but in nohup.out file getting blank values..

#!/usr/bin/perl use DBI; use POSIX; $serip=`ifconfig |grep 'inet addr'`; @serip=split('\n', $serip);@serip=split(' ',$serip[0]);$sip=$serip[1]; +@serip=split('\.',$serip[1]); $sid=$serip[3]; $sip =~ s/addr://; print "ServerIP : $sip ServerID= $sid\n";