NSTask ftp < file
NSTask ftp < file
- Subject: NSTask ftp < file
- From: Camille GOUREAU-SUIGNARD <email@hidden>
- Date: Sat, 23 Apr 2005 09:41:29 +0200
Hi,
I've got a problem and found no repose in the archives.
I've got a ftp command file called toto.txt
When in the terminal I do :
ftp ftp://me:email@hidden < /pathToDirectory/toto.txt
it work perfectly
But when I use it through cocoa it doesn't work:
task = [[NSTask alloc] init];
[task setLaunchPath: @"/usr/bin/ftp"];
[task setArguments: [NSArray arrayWithObjects:
@"ftp://me:email@hidden", @"<", @"toto.txt", nil]];
[task launch];
The run log shows the output for connection, but after that enters the
ftp command editor and wait for an entry
ftp> |
I think the problem lies in a standard output or something like that,
but I cant figure it out.
Thanks for help
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden