AIX 5.3 / KSH
I have a Java application which creates a log file a.log. I have a KSH script which does the following action
cp a.log /directory2/b.log
> a.log
After this the file size goes to 0 as per "ls -l"
Then next time when the application writes into this file, the file size... (4 Replies)
Hi All,
I am checking for a empty input file to do some further action , but I am getting exit status 0 in both the cases , for empty and non empty file both.
The value of $? is coming 0 in if part also and else part too.
#!/bin/ksh
if ]; then
echo "data"
# exit 0
echo "$?"
else... (4 Replies)
Hi All,
I have a piece of perl code in which I DON'T want to delete a file rather empty out the contents, here is the code -
if ( unlink("$opt_b") == 1 ) {
print_log( "$opt_b deleted", 1 );
}else {
print_log( "Could not delete $opt_b:$!", 1 );
... (5 Replies)
Hi there,
I'm just starting out with shell scripting and I'm trying to make a test where the script will basically run yum check-update to find out if the server has any available and if it does it e-mails me but if not it will just stop there.
I have it working if there are actually... (7 Replies)
The below awk improved bu @MadeInGermany, works great as long as the input file has data in it in the below format:
input
chrX 25031028 25031925 chrX:25031028-25031925 ARX 631 18
chrX 25031028 25031925 chrX:25031028-25031925 ARX 632 14... (3 Replies)
Discussion started by: cmccabe
3 Replies
LEARN ABOUT DEBIAN
lnptest
lnptest(1) General Commands Manual lnptest(1)NAME
lnptest - LNP Client Test Application
SYNOPSIS
lnptest
DESCRIPTION
lnptest is an LNP Daemon test client used to test the connection between lnptest and the LNP daemon through the Ir Tower to a corresponding
test program running in an RCX. See the FILES section for the location of the RCX test program source code (distributed with this pack-
age).
OPTIONS
lnptest does not support command-line options.
USAGE
To run the test:
- compile the lnptest.c RCX program
- start the lnpd daemon
- download the lnptest.lx program to the RCX
- (at the RCX) run the program just downloaded to the RCX
- run this lnptest program
- inspect the output looking for lack of failure messages
FILES
/usr/share/doc/lnpd/examples/rcx
In this directory is the source to the RCX-side program which is called lnptest.c but written to be compiled against BrickOS.
SEE ALSO lnptest2(1), lnpdll(1), lnpd(8)
You can find additional documentation in /usr/share/doc/lnpd (on Debian GNU/Linux systems)
AUTHOR
lnptest was written by Martin Cornelius <Martin.Cornelius@t-online.de> This man page was written by Stephen Moraco <stephen@debian.org>
January 23, 2005 lnptest(1)