Operating Systems > Linux and UNIX

command output to command input?

<< < (3/4) > >>

voidmain:
The way I have my stuff set up it doesn't ask me for a password as I am using ssh keys and identity files.

voidmain:

quote:Originally posted by Stryker:
Is it possible to do:
echo apassword | su
(despite it's incredible insecurity, is it possible?)
--- End quote ---


No. You can set up "sudo" if you need to allow certain commands to run as root from a normal user account.

Stryker:
Alright, i'll look up docs on that, and voidman, you abondoned my post for the laptop.  :confused:  still dont know what to do about the dvd.

Stryker:
All I want to accomplish is the knowledge of how to send the output of command A to the input of command B. I dont have any specific goal in mind anymore, I just want to learn something new. And this is 1 thing I know how to do in windows but not linux. I'm not so sure how I could get really detailed about it. lets say I make a program that records all the input it gets, and once it stops recieving input for more than 2 seconds it closes. how would I send 'ls' to that program?

Master of Reality:
program in what C++?
you can make a system call for ls, which is the same as typing ls at the prompt:

--- Code: ---
--- End code ---

(i deleted your double post)

[ August 23, 2002: Message edited by: Master of Reality / Bob ]

[ August 23, 2002: Message edited by: Master of Reality / Bob ]

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version