Your >&2 although correct ( where do you usually display the result of an echo?) is superflu IMHO (makes sence if you were to log errors somewhere...)
Be more respectfull in your indentation (2 or 3 char? once decided, stck to it!)
e.g.
Notice the third test, I removed a = sign, it will not work like that in ksh and you didnt mention what shell you were using...
---------- Post updated at 15:15 ---------- Previous update was at 15:01 ----------
And you didnt test if $1 existed, you risk to see you shell complain...
So your final script should look like: (I changed test syntax so you see there are other ways possible...)
All the best
friends, i love ya...
i wrote a script to automate using cdrdao to burn an audio cd from mp3 files, using the great tutorial at http://tldp.org/HOWTO/MP3-CD-Burning/index.html (check out the site, i believe that it's very well-written). i messed around with it and got to a place where i felt... (2 Replies)
Hi friends,
I want to use sort command in script. I used the following syntax in my scipt,
sort -t '|' +3 tempcdrext4.cdr > temp.mocdr
It give me a error " Input file specified two times."
but this command work fine in the prompt without any problem.
Can sombody please tell me who... (2 Replies)
Hi All,
I need to do a lot of manual entries at shell prompt.
So to collect the logs(each command fired in that session, i use "SCRIPT(1) : make typescript of terminal session"
this is kool,but the problem here is that it saves the linefeed, and backspaces along with the commands in the log... (1 Reply)
Hi,
I am new to shell scripting (sh)
I need a script which will call a utility & once u call it.It will ask for inputs on the screen.These inputs it needs to get or read from a txt file.
for e.g
#! /bin/sh
while read line
do
echo $line
done
txt file will have
test
01/01/2008
... (3 Replies)
Hi All ,,
I have couple of shell scripts .. I am trying to build a Utility script which would call each script
example ::
========
1) uni.sh
2) uni2.sh
3)uni3.sh
when i run the Util script it will come as a menu ,, once i press 1 it will call the first shell script and runs it ..... (10 Replies)
I need some help to run this executable from within a shell script.
The Script is run the following way at the command prompt.
$rateupd
Main Menu --Standard Output
----------- --Standard Output
1. - Update Rate --Standard Output
2. - Exit. --Standard Output
Enter Selection: 1 --User... (5 Replies)
hello all,
I have requirement to identify similar records matching about 80% to 90%.I have to black list customers with multiple accounts.
The data is in the Oracle Database, but is there any way I can get the data into flat file and compare the strings and fetch similar matching records?
... (2 Replies)
All,
I'm getting a list like the following and I'd like to kill each PID in turn.
pid (17797)
pid (21748)
pid (21754)
pid (21704)
pid (2199)
pid (2159)
pid (17809)
pid (21769)
pid (21778)
pid (21715)
... (3 Replies)
Discussion started by: ejianu
3 Replies
LEARN ABOUT FREEBSD
ndisgen
NDISGEN(8) BSD System Manager's Manual NDISGEN(8)NAME
ndisgen -- generate a FreeBSD driver module from a Windows(R) NDIS driver distribution
SYNOPSIS
ndisgen [/path/to/INF /path/to/SYS]
DESCRIPTION
The ndisgen script uses the ndiscvt(8) utility and other tools to generate a FreeBSD loadable driver module and a static ELF object module
from a Windows(R) NDIS driver, for use with the ndis(4) compatibility module.
The ndisgen script is interactive and contains its own help section. Unless the paths to both files are supplied on the command line, the
script will prompt the user for the .INF and .SYS files needed to generate the FreeBSD driver module. The script will also prompt for any
firmware or other external files needed.
SEE ALSO ld(1), objcopy(1), ndis(4), kldload(8), ndiscvt(8)HISTORY
The ndisgen utility first appeared in FreeBSD 6.0.
AUTHORS
The ndisgen utility was written by Bill Paul <wpaul@windriver.com>.
BSD April 24, 2005 BSD