CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced:
getting this message in apache log standard in must be a tty

 



vipan
New User

Feb 3, 2003, 10:32 PM

Post #1 of 2 (1046 views)
getting this message in apache log standard in must be a tty Can't Post

Can Any one help me with this,

I am trying to execute following command which is part of perl script using web browser, this works perfectly fine if i run the script manually:

`su - applmgr -c "sqlload userid=scott/tiger control=/dbfiles/applcsf/cust/bin/test.ctl log=/dbfiles/applcsf/cust/bin/test bad=/dbfiles/applcsf/cust/bin/test"`;

On checking apache log i found this message:

standard in must be a tty

I am not sure why this message is coming.

Vipan


uri
Thaumaturge

Feb 7, 2003, 9:19 PM

Post #2 of 2 (1025 views)
Re: [vipan] getting this message in apache log standard in must be a tty [In reply to] Can't Post

my guess is that su is asking for a password and it is trying to open up /dev/tty or check if stdin is a tty. it needs a tty to prompt for a password and to turn off echoing. su is not a command you can use like that. look into sudo where you can set it up so some commands can be executed as another user without a password prompt.

uri

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives