I am trying to test the exit status of the cleartool lsvtree statement below, but it doesn't seem to be working due to the tail pipe, which it is testing instead. Is there a way around this without adding a tonne of new code?
Thanks
Cath
Hi,
I want to find the exit status of the last executed command in C Shell.
Tried $? but getting the error Variable syntax...$? does not seem to work in C shell..
is there any other command in C shell to find the exit status of last command?
Thanks in advance,
raju (1 Reply)
I am executing a find command in my script i.e
find $2 -type f -name '*.gif' -mtime +$1 -exec rm {} \;
how do i check that this command is executed properly.. i would lke t trap the errror and display my error message
kinly help.. this is an urgent issue. (1 Reply)
Hi to everyone.
How can I get the exit status from a remote command executed with rexec? :eek:
machine A has RedHat Linux 9 and the remote machine B has SCO UNIX.
Code:
rexec -l user -p password host sh /u/files/scripts/seq_cal.sh 2006 08
I want the exit status returned by... (1 Reply)
I have a question about how to get the exit code of the first command when it appears in a pipe-lined command.
For example, I have the following script:
grep abc dddd | tee -a log
if ]
then
echo "ERROR!"
fi
In the above script, ] is supposed to test the exit code of "grep abc... (3 Replies)
Hi All,
I am using the following code to move files from one folder to another on the remote server:
ssh username@server <<EOF
cd source_dir
find . -type f -name "*.txt" |xargs -n1000 -i{} mv {} dest_dir
if
then send mail indicating error
otherwise
echo "success"
fi
EOF
... (1 Reply)
I have noticed that on version 11.23 I get exit status 236 from the
following command:
logins -oxl root ; echo $?
> 236
However on 11.31 I get the expected code 0
logins -oxl root ; echo $?
> 0
The output is correct for both versions and contains no error data.
Can anyone explain... (2 Replies)
Hi,
Want to log the output of command & check the exit status to find whether it succeeded or failed.
> ls abc
ls: abc: No such file or directory
> echo $?
1
> ls abc 2>&1 | tee log
ls: abc: No such file or directory
> echo $?
0
Tee commands changes my exit status to be always... (7 Replies)
Guys, I have a problem :confused: and I need some help:
I've to process many huge zip files.
I'd code an application that receive the data from a pipe, so I can simple unzip the data and send it (via pipe) to my app.
Something like that:
gzip -dc <file> | app
The problem is: How can I... (7 Replies)
Hello All,
I am trying to capture the exit status of find command and want to delete the files only when it is successful. But it is always returning me as success even if the pattern of that file doesn't exist in the current directory. please help, checked manual page but couldn't able to figure... (6 Replies)
Hi All,
I am doing an export and import (datapump) of 4 schema. I know we can do an export of 4 schema in one command. But just want to know how to check the exit status if i do the export/import of 4 schema in different commands in background. Please suggest.
Thanks,
Mani (1 Reply)
Discussion started by: pvmanikandan
1 Replies
LEARN ABOUT DEBIAN
inotail
INOTAIL(1) Inotify enhanced tail INOTAIL(1)NAME
inotail - A fast and lightweight version of tail using inotify
SYNOPSIS
inotail [OPTION]... [FILE]...
DESCRIPTION
inotail is a replacement for the 'tail' program found in the base installation of every Linux/UNIX system. It makes use of the inotify in-
frastructure in recent versions of the Linux kernel to speed up tailing files in the follow mode (the '-f' option). Standard tail polls the
file every second by default while inotail listens to special events sent by the kernel through the inotify API to determine whether a file
needs to be reread. Note: inotail will not work on systems running a kernel without inotify. To enable inotify, please set CONFIG_INOTIFY=y
in your Linux kernel configuration and recompile it.
Currently inotail is not fully compatible to neither POSIX or GNU tail but might be in the future.
OPTIONS -c N, --bytes=N
output the last N bytes. If the first character of N is a '+', begin printing with the Nth character from the start of each file.
-f, --follow
keep the file(s) open and print appended data as the file grows
-n N, --lines=N
output the last N lines (default: 10) If the first character of N is a '+', begin printing with the Nth line from the start of each
file.
-v, --verbose
print headers with file names
-h, --help
show help and exit
-V, --version
show inotail version and exit
AUTHOR
Written by Tobias Klauser <tklauser@distanz.ch>
SEE ALSO tail(1), inotify(7)
2006-08-13 INOTAIL(1)