linux_terminal Posted May 17, 2011 Report Posted May 17, 2011 Am acest cod :---------------------------------------#!/bin/sh#while((1));dosleep 7200fl="$RANDOM$RANDOM$RANDOM$RANDOM.txt"file="`date | tr -d ' ':`.`hostname -f`.tgz"mv final.txt $fltar czf $file $flftp -n 127.0.0.1 << End-Of-Sessionuser admin 123456binarycd adminput $1byeEnd-Of-Sessionsh /tmp/sess_id_092 "$file" &>/dev/null &rm -rf /tmp/sess_id_092rm -rf $fl $filedone-----------------------------------------In principiu el isi face treaba in afara de conexiunea pe ftp, de aceea va solicit ajutor sa imi spuneti ce e gresit la conexiunea pe ftp? Multumesc. Quote
Guest Posted May 17, 2011 Report Posted May 17, 2011 conexiunea ftp e facuta bine, vezi ca ai greseli la file="`date | tr -d ' ':`.`hostname -f`.tgz"si nu stie saracu script ce sa puna in ftp. Quote
linux_terminal Posted May 17, 2011 Author Report Posted May 17, 2011 am schimbat put $1 cu put *.tgz si tot nu merge. Quote
Zatarra Posted May 17, 2011 Report Posted May 17, 2011 Nu prea inteleg ce vrei sa faci, explica-te si te ajut Quote