output from bash script as an argument??????
Hi Every one,
How to take output from bash script as an argument? Regards, Rehan |
Quote:
http://stackoverflow.com/questions/1...another-script http://www.unix.com/shell-programmin...t-another.html There are different ways to do it, depending on what the first script returns, and how. Also, you need to take into account that STDERR is different than STDOUT, and do you want to capture both, or just one? |
Yeah, it will depend on what your first script outputs and what the second script wants to do.
In general, you can pipe the output of the first and 'read' it in second script. You can also use 'xargs' (check man page). |
how can I write a bash script to tell me the winner of the 4:30 at Kempton Park?
|
Quote:
Code:
#!/bin/bash |
Quote:
Regards, Rehan |
Quote:
|
Quote:
|
Quote:
doh! I shoulda oughta known it! |
All times are GMT -5. The time now is 08:13 PM. |