[CentOS] Script consumes memory
John R Pierce
pierce at hogranch.com
Tue Sep 29 16:16:09 UTC 2009
nate wrote:
> Frank M. Ramaekers wrote:
>
>> I have the following script that when executed, consumes memory and
>> makes the system inaccessible. All process are halted.
>>
>
> You can probably drastically simplify your script by using
> ncftpput
>
> http://www.ncftp.com/ncftp/doc/ncftpput.html
>
and simplify it even more using scp, assuming the server at the other
end is unix or linux and supports ssh/scp. first, exchange ssh-keys,
then...
scp $DataFile $VMID:$$VMUser@$VMDir
btw,
if [ $MYSCRIPTDIR != "."
then
cd $MYSCRIPTDIR
fi
is rather redundant. cd . is a no-op, so you might as well just say...
cd $MYSCRIPTDIR
More information about the CentOS
mailing list