10-30-2010
Thanks for the very prompt response. Worked!! I was getting confused by the fact that the command needed the single quotes and I thought I had to somehow leave them there...
thanks a million again
--a
10 More Discussions You Might Find Interesting
1. Programming
How to invoke an Unix Script from C program?
(or)
How to invoke another C program from a C program?
thanks
Karthik (5 Replies)
Discussion started by: fermisoft
5 Replies
2. Shell Programming and Scripting
hi,
i am one day old in shell scritpting. how to invoke one shell script from the other?
For eg.i have two shell scripts A.sh and B.sh. Inside A.sh i need to invoke B.sh and the return code of A.sh should be the value returned by B.sh.
it would be better if you provide any sample shell... (3 Replies)
Discussion started by: ajay xavier
3 Replies
3. Shell Programming and Scripting
list me commands to invoke a shell script from php once the submit button is clicked in the php page. Requirement is Once a submit button is clicked it should run a script that displays the outcome of the script in a html/php. Please help.
Thanks in Advance,
BubeshJ (2 Replies)
Discussion started by: bubeshj
2 Replies
4. Shell Programming and Scripting
Hi everybody,
I have a script in which I'm invoking another script which runs in a subshell.
after the script is executed I want to return to the parent shell as some variables are set. However i'm unable to return to my original shell as the script which i'm calling inside is invoked in... (5 Replies)
Discussion started by: gurukottur
5 Replies
5. Shell Programming and Scripting
How to pass the input to the execution script
ex: test1.sh contains
#! usr/bin/sh
read val
echo $val
test2.sh contains
#! /usr/bin/sh
./test1.sh
now I am calling test2.sh thro command line
and I want to pass the input to the script test1.sh from test2.sh ..I mean not... (6 Replies)
Discussion started by: vastare
6 Replies
6. Shell Programming and Scripting
I have been writing an awk script to calculate and report on sales numbers for a couple different files. The only problem i am having is when i try to call the script.
I want to invoke the script by way of
awk -f report products associates sales
But so far when ever I do that errors are... (2 Replies)
Discussion started by: angermanaged
2 Replies
7. Shell Programming and Scripting
I am new to Unix. Could some tell me what are all the possible ways of invoking/executing a script, doesnt matter which shell you are in. Thanks (4 Replies)
Discussion started by: bobby1015
4 Replies
8. UNIX for Dummies Questions & Answers
hi all,
is there a way to run a script upon invoking an application . for eg if i click on mozilla i want a script to run , before runniing mozilla , maybe ask a password or something only then open mozilla (2 Replies)
Discussion started by: mithun1!
2 Replies
9. Shell Programming and Scripting
whats wrong here?!
________________
#!/bin/sh
# FILE: clean_dirs
# GOAL : To clean up directories used in Oracle processing
# LANGUAGE : shell script (sh)
# PARAMETERS : Input_File
# 11/07/02 acri - modified to cd into the directory so it will... (7 Replies)
Discussion started by: gillraj
7 Replies
10. Shell Programming and Scripting
Hi All,
I have a scenario :
1. A list of servers naming server21, server 22, server 23 etc. This list of servers is separate for my environments.
Env1 has 3 server
Env2 has 5 serves
Env3 has 10 servers
2. Each server accesses application through which I want to invoke some method. So... (7 Replies)
Discussion started by: ankur328
7 Replies
LEARN ABOUT DEBIAN
net::cli::interact::action
Net::CLI::Interact::Action(3pm) User Contributed Perl Documentation Net::CLI::Interact::Action(3pm)
NAME
Net::CLI::Interact::Action - Sent data or matched response from connected device
VERSION
version 1.121640
DESCRIPTION
This class is used internally by Net::CLI::Interact and it's unlikely that an end-user will need to make use of Action objects directly.
The interface is documented here as a matter of record.
An Action object represents either some kind of text or command to send to a connected device, or a regular expression matching the
response from a connected device. Such Actions are built up into ActionSets which describe a conversation with the connected device.
If the Action is a "send" type, then after execution it can be cloned and augmented with the response text of the command. If the response
is likely to be paged, then the Action may also store instruction in how to trigger and consume the pages.
INTERFACE
type
Denotes the kind of Action, which may be "send" or "match".
value
In the case of "send", a String command to send to the device. In the case of "match", a regular expression reference to match response
from the device. In special circumstances an array reference of regular expression references is also valid, and each will be checked for a
match against the device response.
no_ors
Only applies to the "send" kind. Whether to skip appending the output record separator (newline) to the "send" command when sent to the
connected device.
continuation
Only applies to the "send" kind. When response output is likely to be paged, this stores an ActionSet that contains two Actions: one for
the "match" which indicates output has paused at the end of a page, and one for the "send" command which triggers printing of the next
page.
params
Only applies to the "send" kind, and contains a list of parameters which are substituted into the "value" using Perl's "sprintf" function.
Insufficient parameters causes "sprintf" to die.
num_params
Only applies to the "send" kind, and returns the number of parameters which are required for the current "value". Used for error checking
when setting "params".
response
A stash for the returned prompt which matched and triggered the end of this action.
response_stash
A stash for the returned output following a "send" command, but not including the matched prompt which ended the action. This slot is used
by the "match" action as it slurps output, but the content is then transferred over to the partner "send" in the ActionSet.
prompt_hit
When a command is successfully issued, the response is terminated by a prompt. However that prompt can be one of a list, defined in the
Action. This slot records the regular expression from that list which was actually matched.
clone
Returns a new Action, which is a shallow clone of the existing one. All the reference based slots will share data, but you can add (for
example) a "response" without affecting the original Action. Used when preparing to execute an Action which has been retrieved from the
Phrasebook.
AUTHOR
Oliver Gorwits <oliver@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Oliver Gorwits.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-06-12 Net::CLI::Interact::Action(3pm)