Sponsored Content
Top Forums Shell Programming and Scripting Shell script that generates another shell script Post 302864065 by Don Cragun on Tuesday 15th of October 2013 08:08:23 PM
Old 10-15-2013
Homework items can only be posted in the Homework and Classwork Forum and must include the completely filled out template required when posting homework.

This thread is closed.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to Run a shell script from Perl script in Parent shell?

Hi Perl/UNIX experts, I have a problem in running a shell script from my perl script (auto.pl). I run the perl script using perl auto.pl from the shell prompt The shell script picks the files in "input" folder and procesess it. The shell script blue.sh has this code. export... (16 Replies)
Discussion started by: hifake
16 Replies

2. Shell Programming and Scripting

invoking a shell script inside cgi shell script

Hi, I have an HTML form through which I get some text as input. i need to run a shell script say script.sh inside a perl-cgi script named main_cgi.sh on the form input. I want to write the contents of the form in a file and then perform some command line operations like grep, cat on the text... (2 Replies)
Discussion started by: smriti_shridhar
2 Replies

3. Shell Programming and Scripting

need help creating a shell that generates another shell

hi all, i'm trying to create a shell script that browse files in a directory and generates another shell script based on these files. for ex: /tmp/files/ is the directory i want to browse and it has 2 files file1.sh and file2.sh. now my shell script should browse /tmp/files/ and... (6 Replies)
Discussion started by: adshocker
6 Replies

4. Shell Programming and Scripting

How to use ssh execute other shell script on other host (shell script include nohup)?

i want use ssh on the host01 to execute autoexec.sh on the host02 like following : host01> ssh host02 autoexec.sh autoexec.sh include nohup command like follwing : nohup /home/jack/deletedata.sh & after i execute ssh host02 autoexec.sh one the host01. i can't found deletedata.sh... (1 Reply)
Discussion started by: orablue
1 Replies

5. Shell Programming and Scripting

call another shell script and pass parameters to that shell script

Hi, I basically have 2 shell scripts. One is a shell script will get the variable value from the user. The variable is nothing but the IP of the remote system. Another shell script is a script that does the job of connecting to the remote system using ssh. This uses a expect utility in turn. ... (2 Replies)
Discussion started by: sunrexstar
2 Replies

6. Shell Programming and Scripting

Correct shell script to Call One shell script from another shell script

Hi All, I have new for shell scripting. Problem : I have one scrip at serv1 and path of server is /apps/dev/provimage/scripts and script name:extract_ancillary.bat. I need to call this script at server2(my working server) and execute at server2 . Please let me know how to build the... (5 Replies)
Discussion started by: Vineeta Nigam
5 Replies

7. Shell Programming and Scripting

Unable to pass shell script variable to awk command in same shell script

I have a shell script (.sh) and I want to pass a parameter value to the awk command but I am getting exception, please assist. diff=$1$2.diff id=$2 new=new_$diff echo "My id is $1" echo "I want to sync for user account $id" ##awk command I am using is as below cat $diff | awk... (2 Replies)
Discussion started by: Ashunayak
2 Replies

8. UNIX for Dummies Questions & Answers

How to write Config shell script to pass variables in master shell script?

Dear Unix gurus, We have a config shell script file which has 30 variables which needs to be passed to master unix shell script that invokes oracle database sessions. So those 30 variables need to go through the database sessions (They are inputs) via a shell script. one of the variable name... (1 Reply)
Discussion started by: dba1981
1 Replies

9. Shell Programming and Scripting

How to write config shell script to pass variables in master shell script?

Dear Unix gurus, We have a config shell script file which has 30 variables which needs to be passed to master unix shell script that invokes oracle database sessions. So those 30 variables need to go through the database sessions (They are inputs) via a shell script. one of the variable name... (1 Reply)
Discussion started by: dba1981
1 Replies

10. UNIX for Beginners Questions & Answers

Shell script newbie- how to generate service log from shell script

Hi, I am totally a newbie to any programming languages and I just started an entry level job in an IT company. One of my recent tasks is to create a script that is able to show the log file of linux service (i.e. ntpd service) lets say, if I run my script ./test.sh, the output should be... (3 Replies)
Discussion started by: xiaogeji
3 Replies
EvmEventPost(3) 					     Library Functions Manual						   EvmEventPost(3)

NAME
EvmEventPost(), EvmEventPostVa() - post an EVM event SYNOPSIS
Library EVM Support Library Parameters connection The connection through which events are posted. See EvmConnCreate(3). event The event that is to be posted to the specified connection. See EvmEventCreate(3). item_id The identifier for the event data item to be set. See EvmItemSet(3) for possible values for this operand, and the data con- tained by the data item. item_value The value to be stored in the associated item indicated by item_id. DESCRIPTION
An EVM client program uses the routines described on this page to pass events to the EVM daemon, for distribution to subscribers. posts an event that has already been created with or creates, posts and destroys an event in a single call. It first creates a new event, adding any data items supplied in the call to it. If the event operand is not NULL, the contents of the supplied event are then merged into the new event, and the new event is posted. The new event is destroyed before the routine returns, and the supplied event (if any) is unchanged. See EvmItemSetVa(3) for details of the item_ids and item_values that may be passed as operands to this routine. If NULL is passed as the connection operand to either of these routines, the event is posted to the local daemon using a temporary connec- tion. The temporary connection is destroyed before the routine returns. Because of the overhead associated with creating and destroying an EVM connection, pass NULL only if your program rarely posts events. If either routine is unable to pass the event to the daemon, the error is reported immediately through the return code. If the event is passed to the daemon, the type of response depends on the response mode specified when the connection was created. Notes 1. These routines do not destroy the event passed as the event operand. Explicitly call to destroy the event and free its memory once it is no longer needed. 2. Avoid posting a large number of events in rapid succession, since this may cause the connection's send buffer to fill, and the posting process to block until the EVM daemon has relieved some or all of the data. Although this is a normal part of process synchronization, some high-performance processes may prefer to block as infrequently as possible. can be used to increase the size of the send buffer. See EvmConnControl(3) for more information. 3. When using extended item_ids to supply names and values of variable items to be sure to supply the correct number of operands for each. A variable name and value is required for all such items, and some variable types require an additional argument. See EvmItemSetVa(3) for more information. RETURN VALUE
The operation completed without error. The EVM daemon rejected the event. The most likely reasons are that no template has been registered for the event, or that the caller is not authorized to post the event. See evmtemplate(4) and evm.auth(4) for more information. One of the arguments to the function is invalid. A value in a structure member is invalid. An operation failed because an attempt to acquire heap memory failed. The connection's output buffer is full, and the event has been queued in heap space. Another attempt is made to flush the queue when the next call is made to or when the caller invokes This error code is only returned for connections for which has been invoked with the request argument set to A read error occurred while reading from the EVM daemon connection. The connection is no longer usable. The caller needs to invoke to destroy it. A write error occurred while writing to the EVM daemon connection. The connection is no longer usable. The caller needs to invoke to destroy it. ERRORS
The value of is not set. SEE ALSO
Routines EvmConnControl(3), EvmConnCreate(3), EvmConnDestroy(3), EvmConnRegistrationGet(3), EvmEventCreate(3), EvmEventDestroy(3), EvmItemSetVa(3). Event Management EVM(5). Event Connection EvmConnection(5). EVM Events EvmEvent(5). EvmEventPost(3)
All times are GMT -4. The time now is 09:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy