02-01-2009
Quote:
Originally Posted by
phantandy
BTW, my original code really works on my HPUX
The first line is #!/bin/sh, how can I check the exact version?
Are you sure it works when there are multiple matching files? I've never heard of a Bourne-type shell where that would work.
7 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I'm writing a shell script that will create a folder if it does not exist yet. Here's the script: (this if statement is inside a while loop)
folderName="Pics"
if ! test -d folderName
then
mkdir $folderName
fi
However, after the folder Pics has been created, every time the... (3 Replies)
Discussion started by: trivektor
3 Replies
2. Shell Programming and Scripting
This is the code:
while test 1 -eq 1
do
read a
$a
if test $a = stop
then
break
fi
done
I read a command on every loop an execute it.
I check if the string equals the word stop to end the loop,but it say that I gave too many arguments to test.
For example echo hello.
Now the... (1 Reply)
Discussion started by: Max89
1 Replies
3. Shell Programming and Scripting
How to check weather a string is like test* or test* ot *test* in if condition (5 Replies)
Discussion started by: johnjerome
5 Replies
4. Shell Programming and Scripting
Hi,
I would like to ask if someone know how to test a files if exist the file is a nfs mount ufsdump archive file..
i used the test operator -f -a h almost all test operator but i failed
file1=ufs_root_image.dump
|| echo "files doesn't exist && exit 1
the false file1 is working but... (0 Replies)
Discussion started by: jao_madn
0 Replies
5. Shell Programming and Scripting
I have a problem on working in Cygwin with HTK when running .mcf files.
When I enter
./runDemo configs/01ic0201.mfc
I have the following error:
Cannot find proto config file /proto_s_m_c.pcf
How do I fix this problem? (2 Replies)
Discussion started by: advise20023
2 Replies
6. UNIX for Dummies Questions & Answers
Hi guys here i'm again with more question
The code below try to find an user and write everything about him if exist, so my problem appear on line of test, where the program test if the user has secondary groups related. The rest it's clear
# usugrup.sh lista todas las caracteristicas de un... (3 Replies)
Discussion started by: Newer
3 Replies
7. Shell Programming and Scripting
Dears ,
kindly I wanna do test for one KSH script to know how is it working , the problem that I'm facing is whenever put "sh -x ./my_script.sh"
the output seems very long & although I tried to to redirect it to files as it shown , but it failed :eek: :-
sh -x ./my_script.sh >... (2 Replies)
Discussion started by: arm
2 Replies
LEARN ABOUT DEBIAN
mheard
MHEARD(1) Linux Programmer's Manual MHEARD(1)
NAME
mheard - display AX.25 calls recently heard.
SYNOPSIS
mheard [-d cmns] [-n] [-o cfpt] [-v] [port...]
DESCRIPTION
Mheard displays information about most recently heard AX.25 callsigns, the interface upon which they were heard, the total packets heard,
the time at which the last one was heard and other information. Mheard displays different information, in different orders depending on
the settings of the arguments. Information on specific ports can be displayed by giving the port names as arguments.
OPTIONS
-d cmns Sets the information that is displayed for each AX.25 callsign heard. The different arguments are:
c Display all the information with regard to callsigns, from-callsign, to-callsign, port name, and any digipeaters that may
be in use.
m Display miscellaneous information, the from-callsign, port name, no frames heard, the last type of frames heard, and
which different PIDs have been heard from that station.
n Display the default information. This is the from-callsign, port name, no frames heard and the date and time last heard.
s Displays statistics about the station heard, the from-callsign, port name, no I frames, no S frames, no U frames, time
first heard, and time last heard.
-n Supress the displaying of titles.
-o cfpt Sets the ordering of the information displayed. The meanings of the different arguments are:
c Sort list by from-callsign.
f Sort list by number of frames heard.
p Sort list by port name.
t Sort list by the time last heard, this is the default.
-v Display the version.
FILES
/var/ax25/mheard/mheard.dat
/etc/ax25/axports
SEE ALSO
ax25(4), mheardd(8).
AUTHOR
Jonathan Naylor G4KLX <g4klx@g4klx.demon.co.uk>
Linux 19 August 1996 MHEARD(1)