ps problem got worse (was: ps hiding problem)

ps problem got worse (was: ps hiding problem)

Post by Jon A. Maxwe » Fri, 25 Aug 1995 04:00:00



] The program in question is sqr for Sybase.  The new problem is that when I
] try to redirect the user and password into sqr it prompts me for the password;
] I think it is somehow bypassing stdin!  What can I do, I really don't want the
] password available to the person executing the autamated command.
] Once again I don't have the source.

Use expect;  it can tell the program the password and make it think it is
coming from the /dev/tty instead of stdin.  At any point you can still
transfer control back to the user, to continue using the Sybase as usual.

It can do much more, but it certainly can do what you are asking.

--

  n  r    
  a JAMax          "If you walk around carrying a hammer,
  h o   w         an awful lot of things look like nails."
  tan lle                      --Mark Twain

 
 
 

ps problem got worse (was: ps hiding problem)

Post by Garrett H Scha » Fri, 25 Aug 1995 04:00:00


Thanks to all who resonded.  I see the problems with wiping argv
after the program executes.  This wouldn't even be an option as I don't have
the source for the program.  

The program in question is sqr for Sybase.  The new problem is that when I
try to redirect the user and password into sqr it prompts me for the password;
I think it is somehow bypassing stdin!  What can I do, I really don't want the
password available to the person executing the autamated command.
Once again I don't have the source.

I'm running under Solaris 2.4
Any help apreciated
-Garrett

 
 
 

1. optical mouse (ps/2 - usb) random events problems as ps/2?

Hi,

I just got a optical mouse that has ps/2 and usb connections, and tried
it connecting thru ps/2. X stars fine and runs ok except this very often
RANDOM uncontrollable mouse moves and click events. I have it setup
/dev/psaux as my older computer.

Can somebody give me some clues what might be the problem?

Thanks.

2. Library problems

3. adobe .ps vs .pdf files confusion: problems reading ".ps" documentation on redhat 5.2 linux

4. Can't make initrd

5. Linux .ps docs - print problem on HPLJIII with PS cartridge

6. Cut and paste simple question

7. PS/2 buzzing, only in Linux, worse in X, on new motherboard

8. Help printing graphics and text.

9. How do I print PS with non-PS printer ?

10. PS/2 Mouse vs PS/2 Keyboard woes

11. Wide "ps" listings using /bin/ps??

12. ps ea vs ps -ef

13. How to get ps info from C program without using ps command