Koceljeva Forum


 
PrijemTražiRegistruj sePristupi

Delite
 

 [Shell scripting] FTP auto login

Ići dole 
AutorPoruka
sinner_01
Administrator
sinner_01

Muški Broj poruka : 1942
Godina : 39
Lokacija : Koceljeva
Datum upisa : 01.12.2006

[Shell scripting] FTP auto login Empty
PočaljiNaslov: [Shell scripting] FTP auto login   [Shell scripting] FTP auto login Icon_minitimePet Feb 08, 2008 9:25 am

Kod:

#!/bin/bash

#made by sinner_01

#This is FTP auto logging script
#Just specify the directory and the file you want to grab for it

#Example: ./ftplogin 127.0.0.1 /etc passwd

if [ -z $1 ]; then
echo "Enter FTP server!"
exit 1
elif [ -z $2 ]; then
echo "Enter directory name!"
exit 1
elif [ -z $3 ]; then
echo "Enter file name!"
exit 1
fi

HOST=$1
USER=korisnik
PASSWD=lozinka

ftp -ivn <<EOF
open $HOST
user $USER $PASSWD

cd $2
get $3
EOF

--> ovo je samo primer kako ide auto FTP login, inace fajl koji izaberete mozete skinuti samo ako imate -r [ read ] dozvolu <--

_________________
I've had dreams that no one else could have
I've thrown away everything that i don't need.
Those feelings i can't rid remain in may heart.


[Shell scripting] FTP auto login Deadnote1

[Shell scripting] FTP auto login Cmd
Nazad na vrh Ići dole
http://koceljeva.editboard.com
atila



Broj poruka : 82
Datum upisa : 05.12.2006

[Shell scripting] FTP auto login Empty
PočaljiNaslov: Re: [Shell scripting] FTP auto login   [Shell scripting] FTP auto login Icon_minitimeČet Sep 18, 2008 11:12 pm

Odlican posao,samo tako nastavite
Nazad na vrh Ići dole
unknown



Broj poruka : 50
Datum upisa : 30.12.2006

[Shell scripting] FTP auto login Empty
PočaljiNaslov: Re: [Shell scripting] FTP auto login   [Shell scripting] FTP auto login Icon_minitimePet Okt 17, 2008 10:32 am

Ovo je za linux?
Nazad na vrh Ići dole
Sponsored content




[Shell scripting] FTP auto login Empty
PočaljiNaslov: Re: [Shell scripting] FTP auto login   [Shell scripting] FTP auto login Icon_minitime

Nazad na vrh Ići dole
 
[Shell scripting] FTP auto login
Nazad na vrh 
Strana 1 od 1

Dozvole ovog foruma:Ne možete odgovarati na teme u ovom forumu
Koceljeva Forum :: Hi-tech :: Vasi projekti-
Skoči na: