| Author |
Message |
KerneL *nix forums beginner
Joined: 28 Jan 2005
Posts: 37
|
Posted: Thu Mar 24, 2005 11:37 am Post subject:
ftp output problem
|
|
|
how can i put a file via ftp in another dir by one single command line i have tryed
ftp ftp://user:pass@host/path/file.tar -o /dir/file.tar but not working what is the correct command? |
|
| Back to top |
|
 |
mihai *nix forums addict
Joined: 27 Jan 2005
Posts: 71
|
|
| Back to top |
|
 |
KerneL *nix forums beginner
Joined: 28 Jan 2005
Posts: 37
|
Posted: Thu Mar 24, 2005 11:44 am Post subject:
re:ftp output problem
|
|
|
i think it does support because when i type ftp -h i get
| Quote: |
ftp [-46AadefginpRtvV] [-N netrc] [-o outfile] [-P port] [-r retry]
[-T dir,max[,inc][[user@]host [port]]] [host:path[/]]
[file:///file] [ftp://[user[:pass]@]host[:port]/path[/]]
[http://[user[:pass]@]host[:port]/path] [...]
ftp -u URL file [...]
|
you can see there -o outfile option |
|
| Back to top |
|
 |
mihai *nix forums addict
Joined: 27 Jan 2005
Posts: 71
|
Posted: Thu Mar 24, 2005 11:50 am Post subject:
re:ftp output problem
|
|
|
what ftp program are you using ?
my ftp client on slackware has this options:
| Quote: |
ftp -h -v
Usage: { ftp | pftp } [-pinegvtd] [hostname]
-p: enable passive mode (default for pftp)
-i: turn off prompting during mget
-n: inhibit auto-login
-e: disable readline support, if present
-g: disable filename globbing
-v: verbose mode
-t: enable packet tracing [nonfunctional]
-d: enable debugging
|
|
|
| Back to top |
|
 |
KerneL *nix forums beginner
Joined: 28 Jan 2005
Posts: 37
|
Posted: Thu Mar 24, 2005 12:00 pm Post subject:
re:ftp output problem
|
|
|
|
I run FreeBSD 5.3-RELEASE-p5 |
|
| Back to top |
|
 |
mihai *nix forums addict
Joined: 27 Jan 2005
Posts: 71
|
Posted: Thu Mar 24, 2005 12:21 pm Post subject:
re:ftp output problem
|
|
|
oh you posted in the Linux forum I asumed you were using Linux.
You are right the ftp client on freebsd does support the - o option
. Are you getting some error that makes you think that the -o option is not working . |
|
| Back to top |
|
 |
KerneL *nix forums beginner
Joined: 28 Jan 2005
Posts: 37
|
Posted: Thu Mar 24, 2005 12:28 pm Post subject:
re:ftp output problem
|
|
|
i don`t get any error but the file isn`t where it`s suppost to be when i type -o /path/file.tar and yes i forgoth about freebsd you should move all this posts to BSD section  |
|
| Back to top |
|
 |
mihai *nix forums addict
Joined: 27 Jan 2005
Posts: 71
|
Posted: Thu Mar 24, 2005 12:52 pm Post subject:
re:ftp output problem
|
|
|
|
try enable the verbose mode ( -v ) see maybe you get more info about th transfer. |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|