---------- Post updated at 09:47 PM ---------- Previous update was at 09:43 PM ----------
I tried echo 1 | test.sh ,noticed it kept going into an infinite loop of trying to display the next lines of code and eventually stopped at the Command line :
however echo q | test.sh did quit the script as expected...
---------- Post updated at 10:28 PM ---------- Previous update was at 09:47 PM ----------
-added some more detail on the function main_screen i have
$all_queues populates values from anoter folder /queue/queue_1 , /queues/queue_2 etc.
upon running the script i get the above values with number 1 -23 for each queue based on which i made my selection of 1 or 2 at the Command prompt and got the next output
--test.sh
Last edited by Franklin52; 09-13-2012 at 05:26 AM..
Reason: Please use code tags for data and code samples
Hi All,
I need some help/ideas in coming up with a shell script.
Basically, the script should install 1 or 2 or 3 packages based on the input arguments.
For example, if I type in pkgscript.sh a1 a2 a3, it should install all the 3 scripts and pkgscript.sh a1 should install only a1.
If a... (3 Replies)
What is the maximum no. of arguments that could be passed to a shell script ? Is there any restriction ?
I've a requirement where I need to pass a list of names to a unix script and I guess the number of such names is not a fixed one. It can run into hundreds.
Is this feasible ? (4 Replies)
Hi,
I have a shell script called ftp.sh which is running continously in background.
I tried passing arguments to this script but it did not worked out.
Below is ftp.sh script. Please help me
case $param in
start) sleep_func "300"
echo "!ksh $scr_ddir/ftp.sh... (1 Reply)
Hi,
I have a function in shell script
fun1{ echo "No.of arguments are..."}
this function will be called in same script by passing arguments
fun 1 2 3
I want to check the no. of arguments passed to fun1 function in the same functionbefore validation.
can any one suggest me. (2 Replies)
Here is my script:
#!/bin/ksh
usage ()
{
echo " Usage: $0 <opt1> <opt2> <opt3> <opt4>"
}
if ; then
usage
exit;
fi
prog -a $1 -b $2 -c $3 -d $4 2>&1 | tee -a ~/$1.log
I want argument 4 to be optional, so if there's no argument for opt4, that it doesn't... (8 Replies)
Hello,
I have to make a shell script doing that :
the program tests if there is an argument, if there is it checks whether this is a directory or not, If it is it opens it.
for any .c file in the directory it prints 2 lines in the screen :
the dependence line of the .o and compiler commend... (1 Reply)
I need to run a local shell script on a remote machine. I am able to achieve that by executing the command
> ssh -qtt user@host < test.sh
However, when I try to pass arguments to test.sh it fails.
Any pointers would be appreciated. (7 Replies)
My requirement is that I want to pass similar argument to a shell script and process it in the script. Something like below:
myScript.sh -c COMPONENT1 -c COMPONENT2 -a APPNote: -c option can be specified multiple times and -a is optional parameter
I know this can be achieved using... (2 Replies)
Hi all,
I am working on a project, in which I have to connect to Bluetooth low energy device. I am able to connect and do data transfer from command line. But I want to do from script
Here is my script
#!/bin/bash
#sudo hcitool -i hci0 lescan
sleep 1
sudo hcitool -i hci0 lecc --random... (8 Replies)
Hello,
I have a simple shell script, which starts from crontab like this:
00 03 * * 2-6 /export/applications/dte/sh/fwmarg.sh > /export/applications/dte/data/cron_log/fwmarg.cronlog.`date +\%m.\%d` 2>&1
The script doesn't get any argument. But inside it I see the line
... (10 Replies)
Discussion started by: digioleg54
10 Replies
LEARN ABOUT CENTOS
btape
BTAPE(8) Network backup, recovery and verification BTAPE(8)NAME
btape - Bacula's Tape interface test program
SYNOPSIS
btape [options] device-name
DESCRIPTION
This manual page documents briefly the btape command.
OPTIONS
A summary of options is included below.
-? Show summary of options and commands.
-b bootstrap
Specify a bootstrap file.
-c config
Specify configuration file.
-d nn Set debug level to nn.
-p Proceed inspite of I/O errors.
-s No signals (for debugging).
-v Set verbose mode.
COMMANDS
autochanger
test autochanger
bsf backspace file
bsr backspace record
cap list device capabilities
clear clear tape errors
eod go to end of Bacula data for append
eom go to the physical end of medium
fill fill tape, write onto second volume
unfill read filled tape
fsf forward space a file
fsr forward space a record
help print this reference
label write a Bacula label to the tape
load load a tape
quit quit btape
rawfill
use write() to fill tape
readlabel
read and print the Bacula tape label
rectest
test record handling functions
rewind rewind the tape
scan read() tape block by block to EOT and report
scanblocks
Bacula read block by block to EOT and report
status print tape status
test General test Bacula tape functions
weof write an EOF on the tape
wr write a single Bacula block
rr read a single record
rb read a single bacula block
qfill quick fill command
SEE ALSO bscan(1), bextract(1).
AUTHOR
This manual page was written by Jose Luis Tallon <jltallon@adv-solutions.net>.
Kern Sibbald 26 November 2009 BTAPE(8)