NSTask and terminal Passwords
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