What if the stderr message is this:
Would it just hang as no one could "Press Enter" ?
When your script is run from cron, it has nothing to read ENTER from -- no terminal. When the utility tries to read, it will get EOF or some sort of error, and probably quit. A badly-coded program might go into an infinite loop though.
A well-coded program could even tell that it has no terminal, and not bother trying.
hi guys,
I.m trying to remove and add a new tape drive by using the mkdev tape command and when i try to update the Kernel this is what i'm getting,
i386ld: Symbol Sdsk_no_tag in /var/opt/K/SCO/link/1.1.1Eb/etc/conf/pack.d/blad/s
pace.o is multiply defined. First defined in... (0 Replies)
I have a shell script, which calls a load script to load a database. How can i handle errors in Unix(similar to 'error level' in Batch scripts)? I am trying to use 'mailx' to send a Success/failure message based on the error level returned by the load script.
I have already used an error log... (2 Replies)
Hi
! /bin/sh
set logdir1 "logDir/local/logname"
#write the filename into a file
echo $logdir1 >> logname.txt
how do i exec the above echo command (1 Reply)
when I do a tape status /dev/rStp0 I get the following on a new tape and I have tried several:
Status : ready beginning-of-tape
soft errors : 0
hard errors: 2
underruns: 5
My BackupEdge has stopped backing up my system because it asks for a new volume yet my total system data is under 20... (5 Replies)
hi there,
i just need a help handling the output of filespec in case has been picked
im writing a bash script similar to the command ls,
and ive done everything except handing the filespec which i spent more than 3 hrs and i coundn't figure out or find any on the net.
all what i need is... (11 Replies)
I'm trying to write a script that will handle the input from the ls command in my script so I can then manipulate the data.
For example, I want to capture the output of the ls command in my script and then do a differences between the filename received in to another directory.
ls |... (1 Reply)
Hi All,
How can we handle file operation in scripts. I have written a script that run ok otherwise however the "Cat" operation leaves a process open on the box. Command is like
cat "${LASTFILENAME}" | /usr/xpg4/bin/awk -F, '{do{if ($3 == "100" && $4 == "300" && $170 ~ /^abc/) {
... (2 Replies)
Hi,
I need your guys help again. I run a script which check for some process status in a loop. when i check the process some of the process could throw an error, how can i check that inside my script.
Thanks,
RR (3 Replies)
Good Day Everyone,
I was hoping to get a little insight into an expect script that I've written.
Basically we have this expect script to perform an sftp upload, key authentication is not an option, and sftp is the only method supported by our vendor, thus the need for this.
I want to be... (3 Replies)
Hello
I have a file which has around 120 lines of commands.
I am trying to write a shell script like which reads the 'command' file and executes line by line with some additional (common argument) with maximum 6 commands active at a time. Each of these commands when executed takes time... (5 Replies)
Discussion started by: JackyShane_36
5 Replies
LEARN ABOUT DEBIAN
filetraq
FILETRAQ(8) System Manager's Manual FILETRAQ(8)NAME
filetraq - keep track of changes in config files.
SYNOPSIS
filetraq --help
filetraq [filelist] [backupdir]
DESCRIPTION
This manual page documents briefly the filetraq command. This manual page was written for the Debian GNU/Linux distribution because the
original program does not have a manual page.
FileTraq is a shell script that reads a list of files to watch, runs diff against each file and its backup, and reports any discrepancies,
along with keeping a dated backup of the original.
It's designed to be run as a cron job.
OPTIONS
This command has two possible invocations, one with one option:
--help Show summary of options and the default values of the config file and the backup directory.
and other with no options, a config file or a config file and the backupdir.
The debian version has been modified to read the /etc/default/filetraq configuration file, that lets the administrator change the default
values of the config file ( file ), the backup directory ( backupdir ), the diff options used to print the filetraq output ( diffopts ,
e.g. -p -C 1 or -u ) and the diff order ( difforder , either newold (FileTraq default) or oldnew (traditional Unix default)).
SECURITY
FileTraq is not well tested or hardened. It runs as root, but all of its config files should only be accessible by root. No security
holes are known at this time, but please be careful.
BUGS
Right now, it doesn't take care of its backups very well. The dated backups will accumulate in the backups directory, bounded only by
diskspace.
It only handles text files, it isn't a Tripwire replacement for use with system binaries.
FILES
/etc/filetraq.conf
/etc/default/filetraq
/var/lib/filetraq
SEE ALSO diff(1), cron(8).
AUTHOR
Jeremy Weatherford <xidus@xidus.net>
Homepage: http://filetraq.xidus.net/
This manual page was written by Sergio Talens-Oliag <sto@debian.org>, for the Debian GNU/Linux system (but may be used by others).
June 2001 FILETRAQ(8)