Operating Systems > Linux and UNIX
command output to command input?
Master of Reality:
wouldnt it just be something like
rpm -qa | grep pimp
that would search the rpm database and find RPMS with the word pimp in them.
or somthin like
cat /var/run/windows.pid | xargs kill -9
which would read the file named /var/run/windows and then kill whatever cat outputs (which would be the pid)
[ August 23, 2002: Message edited by: Master of Reality / Bob ]
voidmain:
$ ls -alp | ssh username@host "cat > /tmp/ls.txt"
would list the directory contents of the current directory on the local client and pipe the output to the "cat" command on the remote server and redirect it to /tmp/ls.txt on the remote server...
voidmain:
Oh yeah, try *that* in Windows unixluser.
[ August 23, 2002: Message edited by: VoidMain ]
Stryker:
Alright, this helps a lot. thanks. So it is the same, I was just having problems with ssh as I couldn't send anything to the password prompt. All goes well now.
Stryker:
Is it possible to do:
echo apassword | su
(despite it's incredible insecurity, is it possible?)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version