Re: Script consumes memory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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



_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux