06-15-2017
Can you share your code so we can actually see it? If it is huge, then please post a meaningful skeleton that exhibits the same issue so we can consider it and help you find a solution.
Please post the code wrapped in CODE tags for clarity.
Kind regards,
Robin
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Apologies for the trivial nature of this question but I cannot seem to get a simple re direct to a log file to work
Step 1
touch log.txt
at -f batch.sh now >> log.txt
I am trying to get the batch.sh contents into the log file
Manny Thanks (8 Replies)
Discussion started by: JohnCrump
8 Replies
2. Shell Programming and Scripting
Hi,
I want ssh to the remote server and then execute ls and redirect the output to the file in remote server itself
like
ssh root@$server `ls /var/log/users.txt > root@$server:/home/users.txt`
Can you please let me know the correct syntax for it.
Thanks in advance (2 Replies)
Discussion started by: mohitmoudgil
2 Replies
3. UNIX for Dummies Questions & Answers
Suppose I have a file named a
When I write
cat a>a
The following error message is displayed
cat: a: input file is output file
and my file a is truncated to zero size.
Also the exit status of the last command is 1
Can someone tell me what actually happens when I do so? (1 Reply)
Discussion started by: aagajaba
1 Replies
4. UNIX for Dummies Questions & Answers
I am trying to write a script which will output notifications to a logfile, but I would like to cap the logfile to, let's say, 200 lines.
Specifically I am using custom firmware, DD-wrt, on my router and I am implementing a script to connect to my work vpn. I have a loop that pings a computer... (2 Replies)
Discussion started by: joemommasfat
2 Replies
5. Shell Programming and Scripting
I have a system stat command running which generates data after 5 sec or so. I pass this data to awk and do some calculation to present the data differently. Once done now I want to pass this data to file as and when generated but doesn't work..unless the first command completes successfully.... (6 Replies)
Discussion started by: learnscript
6 Replies
6. Shell Programming and Scripting
I am using tar command to append daily database backups on tape. "tar --append " command help me to do this.
But tar --append command does not produce any output on stdout if it succeed.
I want the output for that appended command to a log file.
This log file should contain only the name of the... (0 Replies)
Discussion started by: pganguly46
0 Replies
7. Shell Programming and Scripting
So I have a existing file that I used the uniq command on and I need to save the output to the same file without changing the file name.
I have tried $ uniq filename > filename
then when I cat the file it then becomes blank like there is nothing inside.
any help would be much appreciated... (0 Replies)
Discussion started by: drew211
0 Replies
8. UNIX and Linux Applications
Dear All,
./waf --run scratch/myfirst > log.out 2>&1
The above is a command line to redirect the output to a file called log.out.
what is the 2>&1 part for ?
Thank you (2 Replies)
Discussion started by: knowledgeSeeker
2 Replies
9. Shell Programming and Scripting
I need to count the number of lines in a .txt file and put it in a variable.
I am using the following code
#!/bin/bash
count = $(wc -l "some file.txt" | awk '{print$1}')
echo $count
It is giving the following error.
line3: count: command not foundWhat am I doing wrong here? :confused: (7 Replies)
Discussion started by: haritha.gorijav
7 Replies
10. Shell Programming and Scripting
I am struck up with a problem and that is with output redirection.
I used all the ways for the redirection of the output of c binary to a file, still it is failing.
Here are the different ways which I have used:
./a.out | tee -a /root/tmp.txt 2>&1
./a.out | tee -a /root/tmp.txt 1>&1
./a.out |... (2 Replies)
Discussion started by: Maya29988
2 Replies
LEARN ABOUT DEBIAN
news::article::nocem
NoCeM(3pm) User Contributed Perl Documentation NoCeM(3pm)
NAME
News::Article::NoCeM - a module to generate accurate nocem notices
SYNOPSIS
use News::Article::NoCeM;
my $nocem = new News::Article::NoCeM();
$nocem->hide($type, $spam);
$nocem->make_notice($type, $name, $issuer, $group, $prefix);
$nocem->sign($keyid, $passphrase);
$nocem->issue($conn, $ihave);
DESCRIPTION
Creates a nocem notice on the Usenet articles, which may be posted normally to hide the messages.
USAGE
use News::Article::NoCeM;
News::Article::NoCeM is class that inherits News::Article and adds four new functions: hide(), make_notice(), sign() and issue(), redefine
to disable two functions: post() and ihave().
Article Methods
hide ( TYPE, ARTICLE, [ARTICLE, ...] )
Hide one or more articles in the given "TYPE". "ARTICLE" is an News::Article object that going to be hid. hide() will skip the
articles without Newsgroup or Message-ID and skip the ones already hid.
hide() returns the number of the articles hid.
post
ihave
post() and ihave() is disabled in News::Article::NoCeM. Please use issue() instead.
make_notice ( TYPE, NAME, GROUP, ISSUER, [ PREFIX ] )
Retrive articles marked by hide with "TYPE", and make a notice fot them. If there's only one type within a container, then the
container itself can be a notice. "NAME" is the identifier of the issuer. "GROUP" is the newsgroup the you will post nocem notice to.
"ISSUER" is the email address of the issuer. "PREFIX" is the announcement before the nocem notice, which may explain the criteria of
this notice, or where to find your public key for PGP verification.
make_notice() returns a News::Article::NoCeM object if success, and return undef if no article is hid.
sign ( KEYID, PASSPHRASE )
Sign the content of the nocem notice with "KEYID" and "PASSPHRASE". Please make sure that the issuer's public/secret keyring is ready.
sign() returns a News::Article::NoCeM object if success, and return undef if no article is hid, or pgp_sign failed.
issue ( [ CONN, IHAVE ] )
Take optional "CONN" as a Net::NNTP object and issue the nocem notice. "IHAVE" indicates that call Net::NNTP::ihave() for submitting
the notice, otherwise issue() will call News::Article::post() by default.
issue() return the result of News::Article::post() or issue().
NOTES
Standard article manipulation information can be read in the News::Article manpages.
NoCeM FAQ is available on the web at <URL:http://www.cm.org/faq.html>.
AUTHOR
Written by Yen-Ming Lee <leeym@leeym.com>, based on a module by Tim Skirvin <tskirvin@killfile.org>.
COPYRIGHT
Copyright 2004-2005 by Yen-Ming Lee <leeym@leeym.com>. This code may be redistributed under the same terms as Perl itself.
perl v5.12.4 2006-06-23 NoCeM(3pm)