I have the following script that when executed, consumes memory and
makes the system inaccessible. All process are halted.
First, I don't understand what is wrong with the script
Secondly, I'm surprised that Linux allows this to run unchecked to the
detriment of the entire system.
---- SCRIPT -----
#!/bin/sh
FTP="/usr/bin/ftp"
#
VMID="asystem.ourcompany.com"
VMUser="STATDASD"
VMPass="STATDASD"
VMDir="VMSYSA:."
DataFile="data.txt"
VMFile="DS8100.DATA"
#--- Get some information about me
#--work from the same directory as the script
MYSCRIPT=`$BASENAME $0`
MYSCRIPTDIR=`$DIRNAME $0`
if [ $MYSCRIPTDIR != "." ]
then
cd $MYSCRIPTDIR
fi
#--- FTP to MAINT on mkmfvm
$FTP -vn <<$$EOD
open $VMID
user $VMUser $VMPass
cd $VMDir
ascii
put $DataFile $VMFile
bye
$$EOD
Frank M. Ramaekers Jr.
Systems Programmer MCP, MCP+I, MCSE & RHCE
American Income Life Insurance Co. Phone: (254)761-6649
1200 Wooded Acres Dr. Fax: (254)741-5777
Waco, Texas 76710
_____________________________________________________
This message contains information which is privileged and confidential and is
solely for the use of the
intended recipient. If you are not the intended recipient, be aware that any
review, disclosure,
copying, distribution, or use of the contents of this message is strictly
prohibited. If you have
received this in error, please destroy it immediately and notify us at
[email protected].
_______________________________________________
CentOS mailing list
[email protected]
http://lists.centos.org/mailman/listinfo/centos