Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199901

[PHP3] OT: Using pipes to enter data (password??) From: Jeff Wilcox (jeff <email protected>)
Date: 01/31/99

Hey there... I've been trying to 30 minutes on trying to enter data into a
program. Maybe someone with more Unix background than I have could help..

I'm trying to do something like this (the command):

"testdb\nanimal\nanimal\nyes\n|madddb"

See, I have access to this program called madddb which sets up a special
kind of dbm file-thing.. All I'm trying to do is use pipes to enter the
data so you don't have to run the problem by hand (so I can write a script
to do it for them from a form or something).

Above, the password is animal. It's entered twice because then it confirms
their password.

Well, it isn't working. I was trying things in Perl using the open and
print commands, but I keep getting this error:

stty: TIOCGETD: Operation not supported
Enter password:
stty: TIOCGETD: Operation not supported
stty: TIOCGETD: Operation not supported
Retype the password:
stty: TIOCGETD: Operation not supported

Is there a better way for me to send data to this program... It takes the
first item, testdb, and the last one, 'yes', the answer to a question, but
nothing else...

Thanks for any help you can provide me with..

Jeff Wilcox

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive:  http://www.php.net/mailsearch.php3
List administrator:  zeev-list-admin <email protected>