I want to save the contents of a variable to a file. How can that be achieved?
I have tried with:
echo $varname > textfile.txt
but for some reason it does not print anything. (1 Reply)
I am trying unsuccessfully to set into a variable a specific part of command output:
The command output will be as:
line 1: <varied>
line 2: 2 options:
option 1:
Set view: ** NONE **
or
option 2:
Set view: <different_name_of_views_always_without_spaces>
and I would like to get into... (7 Replies)
Hi,
I have a 3rd party tool on Solaris 8. I am running it thorugh my script but I am not able to capture its output into a variable.
Like, I tried, but did not work.
output=`/usr/bin/myTool`
echo $output
Also, I tried saving in a file but when I run, output is always shown on the... (19 Replies)
I am trying to use send and receive using expect. the expect_out(buffer) is working fine while it is running it as foreground. But the same script when it is ran as background, the expect_out(buffer) errored out.
Is there any factor influence when we run script in foreground and in background? ... (0 Replies)
Hi
i have a file which has mutiple line in it.
inside that i have a pattern similar to this
/abc/def/hij
i want to fine the pattern starting with "/" and get the first word in between the the symbols "/" i.e. "abc" in this case into a variable.
thanks in advance (13 Replies)
Hi,
I have 80 large files, from which I want to get a specific value to run a Bash script. Firstly, I want to get the part of a file which contains this:
Name =A
xxxxxx
yyyyyy
zzzzzz
aaaaaa
bbbbbb
Value = 57
This is necessary because in a file there are written more lines which... (6 Replies)
Hello,
I have a script that checks every file with a specific extension in a specific directory. The file names contain some numerical output and I am recording the file names with the best n outcomes.
The script finds all files in the directory with the extension .out.txt and uses awk to... (12 Replies)
Hi all, I have a file that contains characters. How do I get total of spesific character from that file and save the count to a variable for doing for calculation.
data.txt
1
2
2
2
2
3
3
4
5
6
7
8
5
4
3
4 (5 Replies)
I am trying to download all files from a user authentication, password protected https site, with a particular extension (.bam). The files are ~20GB each and I am not sure if the below is the best way to do it. I am also not sure how to direct the downloaded files to a folder as well as external... (7 Replies)
Discussion started by: cmccabe
7 Replies
LEARN ABOUT REDHAT
send-uucp
SEND-UUCP(8) System Manager's Manual SEND-UUCP(8)NAME
send-uucp, send-nntp, send-ihave - send Usenet articles to remote site
SYNOPSIS
{ send-nntp | send-uucp | send-ihave } [ -d ] sitename:hostname | sitename [ sitename:hostname | sitename .. ]
DESCRIPTION
The send-* utilities are scripts that process the batch files written by innd(8) to send Usenet articles to a remote NNTP or UUCP site.
The sites to be fed may be specified by giving sitename hostname pairs on the command line.
The sitename is the label the site has in the newsfeeds file, the hostname is the real hostname of the remote site, a FQDN (Fully Qualified
Domain Name) in the case of an NNTP host, or the UUCP name in the case of a UUCP host. Normally, the sitename and the hostname are the
same, and as such don't have to be specified as sitename:hostname pairs but just as a sitename.
send-uucp compresses batches of news and sends the to the remote site with uux.
send-nntp Starts an innxmit to send the articles to the remote site.
send-ihave encapsulates the articles in an ihave control message and uses inews to send the articles to a to.sitename pseudo-group. Using
send-ihave is discouraged, nobody uses it anymore and even the author of this manpage is unsure as to how it actually works or used to
work.
send-* expect that the batchfile for a site is named <pathoutgoing in inn.conf>/sitename. To prevent batchfile corruption, shlock(1) is
used to ``lock'' these files.
OPTIONS -d The ``-d'' flag causes nntpsend to send output to stdout rather than the log file <pathlog in inn.conf>/<program-name>.log.
NOTES
You should probably not use send-nntp, but innfeed, or if that is not possible, nntpsend.
The usual flags in the newsfeed file to write a batch file suitable for processing by send-uucp are Tf,Wfb .
The usual flags for a batch file for send-nntp are Tf,Wfm
SEE ALSO newsfeeds(5), nntpsend(8)SEND-UUCP(8)