Search Results

Search: Posts Made By: akar_naveen
2,216
Posted By akar_naveen
numrows variable is not getting anything assigned...
numrows variable is not getting anything assigned by read.
2,216
Posted By akar_naveen
Run multiple commands in $() without opening a new shell
The code below works, but takes too many lines and looks awkward:

db2 "export to $filename of del select * from $table with ur"|tee -a $LOGFILE|awk '/Number of rows exported:/ {print $5}'...
15,247
Posted By akar_naveen
expect is not installed in our systems. But...
expect is not installed in our systems.

But I am guessing there must be some kind of I/O indirection that allows me to read the output of the coprocess.
15,247
Posted By akar_naveen
Reading from Co-process
I have an SFTP coprocess whose output is redirected to a file (as shown in the script below). Now how can I read the output of the coprocess:

exec 4>$FTPLOG
sftp nakarapu@serverx >&4 2>&4 |&...
Showing results 1 to 4 of 4

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