Search Results

Search: Posts Made By: gvkumar25
5,788
Posted By gvkumar25
Hi Sea, Thanks for your reply. What I am...
Hi Sea,

Thanks for your reply. What I am looking is to format the out put. I want to format even when we have an error. It is working fine when we have o/p but it is failing when we have an...
5,788
Posted By gvkumar25
Basically what I am looking is to format command...
Basically what I am looking is to format command out put. I tried in below way also
ls -lrt 2>&1 | output_log
[INFO][Feb 08 16:11:10] total 112


I can see only first line in the output....
5,788
Posted By gvkumar25
the above script is not working when we have an...
the above script is not working when we have an error.
ls x |output_log
x not found
[INFO][Dec 12 10:37:17]

when I run again
]ls test_file | output_log
[INFO][Dec 12 10:47:10] test_file

...
5,788
Posted By gvkumar25
What you are checking with -t option if [...
What you are checking with -t option

if [ -t 0]

I am not clear with this step
5,788
Posted By gvkumar25
How to pipe command output to shell script?
Hi Team,

Need a help on how to pipe a command out put to a shell script. My shell script looks like below.


cat shell_script
#!/usr/bin/ksh
input =$@
echo " we are inside the shell...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 08:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy