• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSTask ftp < file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSTask ftp < file
      • From: Gwynne <email@hidden>
  • Prev by Date: NSUndoTyping and NSUndoTextOperation
  • Next by Date: Re: NSTask ftp < file
  • Previous by thread: NSUndoTyping and NSUndoTextOperation
  • Next by thread: Re: NSTask ftp < file
  • Index(es):
    • Date
    • Thread