I'm trying to locate all files that do not contain the string /usr but do contain the string csh within the file called /etc/passwd. Then I would like to direct this output to a file called pout.
Does anyone one have suggestions on this one?
Thanks (2 Replies)
How do I direct the output of an at command
at now < backupprogram
so that I see something happening. It says the job has been executed but I am not getting the tar file that my backup program on the computer anywhere at all
Please help me - I really am a struggling begginer. (1 Reply)
Hi,
I'm running a program by executing the following command...
convert NA 2> compiler.err
Here is the command for debugging this process in IBM debugger...
idebug convert NA 2> compiler.err
On executing the above command the error output from idebug process is
redirected to compiler.err,... (3 Replies)
Hi,
I just wrote a program in C to split a comma seperated string in to group of strings using strtok() function. The code is:
int main()
{
char *temp;//not used here but basically we extract one string after another using strtok() and assign to a string pointer defined like this.
... (3 Replies)
When I do
time tar cvf /dev/st0 /mnt/junk >> /root/benchlog, I want it to put the output of the time command into the benchlog file, but it put /mnt/junk. How do I get it to put the output of the tar command? (1 Reply)
I have a script in which some outputs are directed to one file
echo "Load Started" >>${LOGFILE1}
If I have another file LOGFILE2 and i want to redirect the output of the above echo command to LOGFILE2 as well with the same command line... how can i do that?
Thanks (2 Replies)
Hi all,
i want to sent output to email and folder at same time. This is my code :
echo "Hello" | mailx -s "${SUBJECT}" "${email_add}" >> ${file}
I only can sent output to my email but cannot sent to my empty folder....can i know how to done it? (1 Reply)
Is there a way to keep the output of a script displayed on the terminal when it's run by itself, but suspend part of that output and only have a specific part delivered when it's piped to another script or program? I'm thinking something like the following pseudocode:
#!/bin/bash
... (1 Reply)
Hi All,
Have scheduled a cron entry to run once a week.
0 0 * * 1 /export/home/nz/history_load/prod/LoadManager.sh >>/dev/null 2>&1
Not sure, why this job did not got triggered last week. Want to know the reason behind not getting triggered.
I was re-directing the output of... (1 Reply)
Discussion started by: Nagaraja Akkiva
1 Replies
LEARN ABOUT DEBIAN
makeactive
MAKEACTIVE(8) System Manager's Manual MAKEACTIVE(8)NAME
makeactive - tool to recover Usenet active file.
SYNOPSIS
makeactive [ -m ] [ -o ]
DESCRIPTION
Makeactive invokes find(1) to get a list of all directories in the news spool tree, /var/spool/news. It discards directories named
lost+found as well as those that have a period in them. It scans all other directories for all-numeric filenames and determines the high-
est and lowest number. The program's output is a set of active(5) file lines. Because there is no way to know if a group is moderated or
disabled, the fourth field of all entries will be y. Also, mid-level directories that aren't newsgroups will also created as newsgroups
with no entries (for example, there is a ``comp.sources.unix'' group, but no ``comp.sources'').
OPTIONS -m If the ``-m'' flag is given, then makeactive will attempt to adjust the highest and lowest article numbers wherever possible. If
articles are found in a newsgroup, the numbers will reflect what what was found. If no articles are found in a newsgroup, the high
number from the old file will be kept, and the low number will be set to one more then the high number. This flag may only be used
if the ``-o'' flag is used.
-o If the ``-o'' flag is used, makeactive will read an existing active file for the list of group names and just renumber all groups.
It will preserve the fourth field of the active file if one is present. This is analogous to the ctlinnd(8) ``renumber'' command,
except that innd(8) should throttled or not running. Do not use this flag with output redirected to the standard active file!
EXIT STATUS
Makeactive exits with non-zero status if any problems occurred.
EXAMPLES
A typical way to use the program is with the following /bin/sh commands:
ctlinnd throttle "Rebuilding active file"
TEMP=${TMPDIR-/var/spool/news/in.coming/tmp}/act$$
if [ -f /var/lib/news/active ] ; then
if makeactive -o >${TEMP} ; then
mv ${TEMP} /var/lib/news/active
fi
else
if makeactive >${TEMP} ; then
# Edit to restore moderated
# and aliased groups.
...
mv ${TEMP} /var/lib/news/active
fi
fi
ctlinnd reload active "New active file"
ctlinnd go ''
HISTORY
Written by Rich $alz <rsalz@uunet.uu.net> for InterNetNews. This is revision 1.3, dated 1996/10/29.
SEE ALSO active(5), ctlinnd(8), dbz(3), filechan(8), history(5), innd(8), newsfeeds(5), makehistory(8), newsrequeue(8).
MAKEACTIVE(8)