• 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 and terminal Passwords
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTask and terminal Passwords


  • Subject: NSTask and terminal Passwords
  • From: Micah Neumark <email@hidden>
  • Date: Tue, 16 Aug 2005 09:43:19 -0700

I have been trying to get setStandardInput to work properly. I tested
with just cat and it seemed to work pretty easily. However, when you
want to make a gui for something like scp, ssh, rsync, etc, it becomes
more difficult.

 All I want is to enter the password. I have code like shown here:
http://cocoadevcentral.com/articles/000031.php, except for rsync
instead, and I tried adding an if statement to copyData: that tests
for @"Password:" from stdout, and when that happens, uses stdin to
print the password that I recieve from the user in a password field.
But, this doesn't seem to work(although i verified that it IS finding
@"Password").

I think what is happening is that it is getting sent through a file
descriptor that isn't stdin, maybe, and so I print the password, and
it doesn't work because I am not supposed to be going through stdin,
but through another file descriptor. Any suggestions?

Thanks,
Micah Neumark
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: (no subject)
  • Next by Date: Re: cp "destroys" static libraries?
  • Previous by thread: (no subject)
  • Next by thread: server side application
  • Index(es):
    • Date
    • Thread