05-05-2016
Depends what you're expecting it to do. If you want it to run those two commands and quit, sure.
If you want it to run those two commands, then start accepting input from terminal, that's a little more complicated.
10 More Discussions You Might Find Interesting
1. Programming
Hi
I am doing file redirection at console for use by my binary.
%console%> bin < inputfile
After reading in the entire file, I want my program to continue taking input from the console. So essentially I want to redirect stdin back to console. But I cant figure out how to do it.
I am... (4 Replies)
Discussion started by: nauman
4 Replies
2. Shell Programming and Scripting
i am trying to find a way to put an interactive script in the background after taking input from the user
a few test lines i was trying:
date
echo "Enter location"
LOCATION=
read LOCATION
sleep 100
sleep 200
date
for this small example i want the script to as the user for the... (7 Replies)
Discussion started by: epsilonaurigae
7 Replies
3. Homework & Coursework Questions
Q. Write a script that behaves both in interactive and non interactive mode. When no arguments are supplied it picks up each C program from the directory and prints first 10 lines.
It then prompts for deletion of the file.
If user supplies arguments with the script , then it works on those files... (1 Reply)
Discussion started by: rits
1 Replies
4. Homework & Coursework Questions
Q. Write a script that behaves both in interactive and non interactive mode. When no arguments are supplied it picks up each C program from the directory and prints first 10 lines.
It then prompts for deletion of the file.
If user supplies arguments with the script , then it works on those files... (8 Replies)
Discussion started by: rits
8 Replies
5. UNIX for Dummies Questions & Answers
:confused:Hi
This was installed on the Linux box a few weeks back by a guy that no longer works for us. All worked fine until last week. Now when we connect its just a blank screen with no icons.
I get a whole bunch of errors when starting the service too:
Tue Feb 23 14:29:45 2010
... (1 Reply)
Discussion started by: wbdevilliers
1 Replies
6. UNIX for Advanced & Expert Users
hi 2 all
whatever in a file that line have to come in console screen .. when i execte that script ...
>cat abc
date
ls
>./abc
>date ---->that line hav to come here
> ls ----> that line hav to come here
please anyone help me ! (4 Replies)
Discussion started by: ponmuthu
4 Replies
7. Shell Programming and Scripting
I'm writing a basic ldapsearch script that prompts the user for their search criteria. The input they're being asked for is the search filter portion of the ldapsearch command. This string must be quoted. When the script executes the command it returns nothing. If I hard code a search filter it... (1 Reply)
Discussion started by: donniemac
1 Replies
8. Linux
how to get the outout from script to console.
i am running one script msg.sh using cron job every suday midnight. as soon as i logged in i want to see the staus is service started or service failed on console.
what command i need to add to script ?
msg.sh
#!/bin/bash
if
then
echo... (1 Reply)
Discussion started by: saku
1 Replies
9. Shell Programming and Scripting
msg.sh
#!/bin/bash
if
then
echo "starting service"
else
echo " service not started"
echo " Please check the start.sh file or manuly start the service"
fi
if i login with root credentials @12.36.34.123 with passwd
username:root
passwd:abc
once i login into linux pc... (6 Replies)
Discussion started by: saku
6 Replies
10. Shell Programming and Scripting
Hello, I want to start out by saying that I am fairly new to scripting and am looking for someone that can point me in the right direction.
Basically what I need is a way to run a interactive script that will prompt users with questions weather that be yes/no or a specific answer.. I want to be... (3 Replies)
Discussion started by: shoutcast
3 Replies
LEARN ABOUT DEBIAN
zoomsh
ZOOMSH(1) Commands ZOOMSH(1)
NAME
zoomsh - ZOOM shell
SYNOPSIS
zoomsh [-e] [-v loglevel] [commands...]
DESCRIPTION
zoomsh is a ZOOM client with a simple command line interface. The client demonstrates the ZOOM API and is useful for testing targets.
You may pass one or more commands to zoomsh. These commands are invoked first.
OPTIONS
-e
Makes zoomsh stop processing commands as soon as an error occur. The exit code of zoomsh is 1 if error occurs; 0 otherwise.
-v loglevel
Sets YAZ log level.
EXAMPLES
If you start the yaz-ztest in one console you can use the ZOOM shell as follows:
$ zoomsh
ZOOM>connect localhost:9999
ZOOM>search computer
localhost:9999: 7 hits
ZOOM>show 0 1
1 Default USmarc
001 11224466
003 DLC
005 00000000000000.0
008 910710c19910701nju 00010 eng
010 $a 11224466
040 $a DLC $c DLC
050 00 $a 123-xyz
100 10 $a Jack Collins
245 10 $a How to program a computer
260 1 $a Penguin
263 $a 8710
300 $a p. cm.
ZOOM>quit
You can also achieve the same result by passing the commands as arguments on a single command line:
$ zoomsh "connect localhost:9999" "search computer" "show 0 1" quit
COMMANDS
connect zurl
Connects to the target given by zurl.
close [zurl]
Closes connection to target given by zurl or all targets if zurl was omitted.
show [start [count]]
Displays count records starting at offset given by start. First records has offset 0 (unlike the Z39.50 protocol).
quit
Quits zoomsh.
set name [value]
Sets option name to value.
get name
Prints value of option name.
help
Prints list of available commands.
SEE ALSO
yaz(7), yaz-ztest(8),
Section "Building clients with ZOOM" in the YAZ manual.
ZOOM home page[1].
NOTES
1. ZOOM home page
http://zoom.z3950.org/
YAZ 4.2.30 04/16/2012 ZOOMSH(1)