You could check certain directories that might not be in your $PATH first, then look at 'whereis', 'type' or the other variants listed above.
if [ -x /sbin/swapadd ] ; then
SWAPADD=/sbin/swapadd
else
SWAPADD=`which swapadd`
fi
Have a look at the documentation for CGI.pm at
http://stein.cshl.org/WWW/software/CGI/#scrolling_list
To change the example to use an array, add 'scalar' ahead of scrolling list
scrolling_list(
-name=>'list_name',
-values=>['eenie','meenie','minie','moe'],
-default=>['eenie','moe']...
If you are using apache, the httpd.conf file will tell you the format of the log file.
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
#
# The...
WilliamRobertson did fine work on this here
http://www.williamrobertson.pwp.blueyonder.co.uk/code/shift_date.awk.txt
As mentioned here http://www.computing.net/unix/wwwboard/forum/6225.html
Autoexpect is included with the expect package. The script it will generate will probably replicate your keystrokes and movements similar to winrunner but will most likely require cleanup. From a dos prompt type autoexpect followed by the commands you want to executed and see if creates a script...
Based on a disk scrubbing script from Solaris, this won't make it faster but will automate multiple disks.
--David Perry
#!/usr/bin/ksh
# set -x
# scrubbing disks with Solaris
# reboot -- -r
# touch /reconfigure ; reboot
echo "devfsadm -v"
devfsadm -C
devfsadm -v
DISKLIST="/tmp/scrub$$"
touch...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.