01-15-2008
Help on how to call a utility from script
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
pls can u help me on how to call any utility or program from script and read file for inputs.
Thks in adv.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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)
Discussion started by: snwright
2 Replies
2. Shell Programming and Scripting
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)
Discussion started by: maheshsri
2 Replies
3. UNIX for Dummies Questions & Answers
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)
Discussion started by: amit4g
1 Replies
4. Shell Programming and Scripting
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)
Discussion started by: raghav1982
10 Replies
5. Shell Programming and Scripting
#!/usr/bin/bash
name="$@"
myname=malay
#echo $myname
select firstname in $name;
do
if ;then
echo $firstname
else
break
fi
done
invoking with:-
./script.sh one two three four five six seven eight nine malay (6 Replies)
Discussion started by: mobydick
6 Replies
6. Shell Programming and Scripting
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)
Discussion started by: rajeeb_d
5 Replies
7. Shell Programming and Scripting
Hi,
I am new to shell scripting and thus any help will be highly appreciated. I need to write a K shell script where in the email sending feature should be handled by sendmail utility and I have come up with the following :
#!/usr/bin/ksh
echo "This is a test mailest mail" | /usr/lib/sendmail... (4 Replies)
Discussion started by: sdiptanil
4 Replies
8. Homework & Coursework Questions
1. The problem statement, all variables and given/known data:
saferm is a replacement for the rm utility. Rather than removing files, it move files in a sub directoy called".saferm" in the user's home directory. If "~/.saferm" doesn't exist, it is automatically created. The -l options lists the ... (3 Replies)
Discussion started by: Joey12
3 Replies
9. UNIX for Advanced & Expert Users
Hi, all:
Which shell command or utility will call the open(), close(), hard_start_xmit(), rtl8139_rx(), or interrupt() functions in a network device driver I am debugging?
Can "ping", "ftp", "scp", or "internet browser" finally call them?
Best regards!
li, kunlun (0 Replies)
Discussion started by: liklstar
0 Replies
10. Shell Programming and Scripting
Hi All,
Am trying to write a shell script to automate one of the product utility but am struck with how to send/key in the inputs and most importantly it requires to press "Enter" key every time after giving the input.
Not sure how to take control of utility from script and key in... (1 Reply)
Discussion started by: Optimus81
1 Replies
LEARN ABOUT DEBIAN
hobbitcgi.cfg
HOBBITCGI.CFG(5) File Formats Manual HOBBITCGI.CFG(5)
NAME
hobbitcgi.cfg - Command-line parameters for the Xymon CGI tools
SYNOPSIS
$BBHOME/etc/hobbitcgi.cfg
DESCRIPTION
hobbitcgi.cfg(1) controls the commandline options passed to all of the Xymon CGI tools through their respective shell-script wrappers. Typ-
ically the options listed here are used for system-wide configuration of the CGI utilities, e.g. to define where they read configuration
files.
The exact set of commandline options available are described in the man-page for each of the CGI utilities.
The file is "sourced" into the shell script wrapper, so assignments to the CGI-specific variables must follow standard shell-script syntax.
SETTINGS
CGI_ACKINFO_OPTS
Options for the hobbit-ackinfo.cgi(1) utility.
CGI_ACK_OPTS
Options for the bb-ack.cgi(1) utility.
CGI_CSVINFO_OPTS
Options for the bb-csvinfo.cgi(1) utility.
CGI_DATEPAGE_OPTS
Options for the bb-datepage.cgi(1) utility.
CGI_ENADIS_OPTS
Options for the hobbit-enadis.cgi(8) utility.
CGI_EVENTLOG_OPTS
Options for the bb-eventlog.cgi(1) utility.
CGI_FINDHOST_OPTS
Options for the bb-findhost.cgi(1) utility.
CGI_HIST_OPTS
Options for the bb-hist.cgi(1) utility.
CGI_HOBBITCOLUMN_OPTS
Xymon-specific options for column documentation. This uses the bb-csvinfo.cgi(1) utility with the server/etc/columndoc.cfg configu-
ration file.
CGI_HOBBITCONFREPORT_OPTS
Options for the hobbit-confreport.cgi(1) utility.
CGI_HOBBITGRAPH_OPTS
Options for the hobbitgraph.cgi(1) utility.
CGI_HOSTGRAPHS_OPTS
Options for the hobbit-hostgraphs.cgi(1) utility.
CGI_NKEDIT_OPTS
Options for the hobbit-nkedit.cgi(1) utility.
CGI_NKVIEW_OPTS
Options for the hobbit-nkview.cgi(1) utility.
CGI_REPLOG_OPTS
Options for the bb-replog.cgi(1) utility.
CGI_REP_OPTS
Options for the bb-rep.cgi(1) utility.
CGI_SNAPSHOT_OPTS
Options for the bb-snapshot.cgi(1) utility.
CGI_SVCHIST_OPTS
Options for the hobbitsvc.cgi(1) utility when used to view historical logs. Note that the "--historical" option must be included in
this setting.
CGI_SVC_OPTS
Options for the hobbitsvc.cgi(1) utility.
SEE ALSO
xymon(7), the individual CGI utility man-pages.
Xymon Version 4.2.3: 4 Feb 2009 HOBBITCGI.CFG(5)