I think you can redirect the output to a stream socket if you fork and exec rather than using popen. This is because the redirection has to happen before you run the program, not after.
Hi,
I am looking for a way to redirect the result from a command into a variable.
This is the scenario.
Using the find command I will be getting multiple records/lines back.
Here is the command I am using:
find /”path”/ -name nohup.out -print
This now is giving me the paths and file... (1 Reply)
hi
I want to suppress the output of dos2unix command in my shell script. I'm using follwing command in my script
dos2unix somefile >/dev/null
But it's still showing output while executing the script.Please help me to sort this out
Thanks (4 Replies)
hi,
In Oracle Enterprise Linux
I'm not able to redirect output of commands pvscan and vgscan into a file. File is coming blank
Please suggest something
Thanx. (1 Reply)
Hi,
I'm not able to redirect output of ovscan and vgscan commands to a file in Oracle Enterprise Linux.
Please suggest something.
Thanks
Mayank (1 Reply)
Hi Everyone,
Can anyone please tell me, how can I redirect the grep command output to same file. I am trying with below command but my original file contains no data after executing the command.
$grep pattern file1 > file1
Kind Regards,
Eswar (5 Replies)
I came across the command string on https://www.unix.com/shell-programming-scripting/141885-awk-removing-data-before-after-pattern.html which was what I was looking for to be able to remove data before a certain pattern. However, outputting the result to a file seems to work on an individual basis... (4 Replies)
Hi, I put a for loop in a script to eject backup tapes from the robot. The command echo' output goes to the log file without problem, but command vmchange's output does not go to the log file although it's working fine. It still displays on the screen. I've tried '2>&1 1>$log', but nothing changed.... (5 Replies)
Hi All,.
We are using AIX as the OS to host the Oracle ERP. We have a command FNDLOAD which is used to load setups. When this command is run, it outputs names of log files and any errors to the screen.
I am trying to redirect this output to a file because we have large number of these... (4 Replies)
I would like to redirect output of command line in for loop as $line.
Output should be processed as line but instead it throw whole output.
Could somebody help me on how to redirect output of command line and process it line by line without sending output to any file.
below is my code ... (1 Reply)
hi,
i am using ftp to get files from remote server. inside the ftp i want to us ls -ltr command and send the output of it to a file.
ftp -n remote_server <<_FTP
quote USER username
quote PASS password
prompt noprompt
pwd
ls -ltr
get s1.txt
bye
_FTP
i... (4 Replies)
Discussion started by: Little
4 Replies
LEARN ABOUT DEBIAN
efax-gtk-socket-client
efax-gtk-socket-client(1) General Commands Manual efax-gtk-socket-client(1)NAME
efax-gtk-socket-client - a client of efax-gtk to work with lpd/lprng
SYNOPSIS
efax-gtk-socket-client [hostname] [port]
DESCRIPTION
This program enables lpd/lprng to access the efax-gtk socket server. Meaning the user can send faxes to a printer, which will ack as a fax.
It takes two arguments - first a hostname to connect to, and secondly a port number at that hostname to connect to. All efax-gtk-socket-
client does is to read from standard input (in this case from lpd/lprng) and passes it to a socket at the hostname and port number passed
as arguments to it (namely the hostname of the computer efax-gtk is running on - normally you would specify localhost - and the port number
of the socket).
fax:
:sd=/var/spool/fax:
:mx#0:
:sh:
:lp=/dev/null:
:if=/var/spool/fax/efax-gtk-faxfilter:
This will cause a printer by the name of "fax" to be available, which (if printed to) will send the file to the efax-gtk socket server. If
you set efax-gtk to listen on a port other than port 9900, you will need to amend the file /var/spool/fax/efax-gtk-faxfilter by hand to
specify the correct port number on which efax-gtk is listening.
Don't forget to restart the lpd printer daemon after amending /etc/printcap.
OPTIONS
[ hostname ] - The name of the host to listen to. Usually should be locahlhost.
[ port ] - the port number to listen to on the [ hostname ].
SEE ALSO efax(1), efax-gtk(1).
AUTHOR
efax-gtk-socket-client was written by Chris Vine <chris@cvine.freeserve.co.uk>.
This manual page was written by Lior Kaplan <kaplan@debian.org>, for the Debian project (but may be used by others).
July 18, 2006 efax-gtk-socket-client(1)