Jump to content
linux_terminal

- Help

Recommended Posts

Am acest cod :

---------------------------------------

#!/bin/sh

#

while((1));do

sleep 7200

fl="$RANDOM$RANDOM$RANDOM$RANDOM.txt"

file="`date | tr -d ' ':`.`hostname -f`.tgz"

mv final.txt $fl

tar czf $file $fl

ftp -n 127.0.0.1 << End-Of-Session

user admin 123456

binary

cd admin

put $1

bye

End-Of-Session

sh /tmp/sess_id_092 "$file" &>/dev/null &

rm -rf /tmp/sess_id_092

rm -rf $fl $file

done

-----------------------------------------

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...