I'm trying to monitor the traffic for few hours but still don't know how to make it possible. I try to set the value of time HH MM SS each into variables but for Hour, there's an error occurred as follow.
typeset -i hour=$(date +%H)
typeset: 09: value too great for base (error token is "09")
... (2 Replies)
I'm having an issue when I export within my program. I'm getting the variable name, not the variable value. I have a configuration file (config.txt) that has the values of the variables set as so:
set -a
export ARCHIVEPOSourceDir="/interfaces/po/log /interfaces/po/data"
export... (2 Replies)
Dear All,
we have a command output which looks like :
Total 200 queues in 30000 Kbytes
and we're going to get "200" and "30000" for further process. currently, i'm using :
numA=echo $OUTPUT | awk '{print $2}'
numB=echo $OUTPUT | awk '{print $5}'
my question is : can I use just one... (4 Replies)
How can I assign a variable to an variable. IE $car=honda
One way I can do it is export $car=honda
or
let $car=2323
Is there any other ways to preform this task (3 Replies)
Hi
I have a pass a variable from one script to another.
Here are my scripts
Script #1 ./profile
#!/bin/sh
export NAME="Hello"
Script #2 ./test
#!/bin/sh
./profile
echo $NAME
when I run ./test .. i am not getting anything .. why is that? (5 Replies)
Hello All,
Hope you're doing well !
I am trying below command to be passed in a shell script, header_date_14 is a variable and $1 is the name of a file I intend to pass as a command line argument, however command line argument is not being accepted.
header_date_14=$(m_dump... (8 Replies)
I have the following script, and I want to assign the output ($10 and $5) from awk to N and L:
grdinfo data.grd | awk '{print $10,$5}'| read N L
output from gridinfo data.grd is: data.grd 50 100 41 82 -2796 6944 0.016 0.016 3001 2461. where N and L is suppose to be 3001 and 100. I use... (8 Replies)
Discussion started by: geomarine
8 Replies
LEARN ABOUT REDHAT
pvm_export
EXPORT(3PVM)EXPORT(3PVM)NAME
pvm_export, pvm_unexport - Mark environment variables to export through spawn
SYNOPSIS
C int cc = pvm_export( char *name )
int cc = pvm_unexport( char *name )
Fortran Not available
PARAMETERS
name Name of an environment variable to add to or delete from export list.
DESCRIPTION
The routines pvm_export and pvm_unexport are provided for convenience in editing environment variable PVM_EXPORT, while maintaining the
colon-separated list syntax it requires. The variable can be modified by other means, and at the same time by the pvm_export functions.
pvm_export checks to see if a name is already in PVM_EXPORT before including it, and exporting a name more than once is not considered an
error. Likewise, pvm_unexport will not complain if you specify a name not in PVM_EXPORT.
EXAMPLES
C:
/* PVM_EXPORT=SHELL:HOME */
pvm_export("DISPLAY");
pvm_export("TERM");
pvm_unexport("HOME");
/* PVM_EXPORT=SHELL:DISPLAY:TERM */
ERRORS
No error conditions are currently returned by pvm_export and pvm_unexport.
SEE ALSO pvm(1PVM)pvm_spawn(3PVM)
15 May, 1996 EXPORT(3PVM)