I'm hoping you guys can help me out here. I've been trying different methods to try and get what IW as hoping would be a fairly simple script but has turned into a pain.
Bit of background - I am writing a script to check values in certain failes to ensure they are corerct. I'm runnign this on a Citrix Netscaler which is based on FreeBSD.
The problem I'm having is passing the output of a command into a variable.
currect script thats failing:
When I run this script the $rFServicesCVer does not appear to get set
tested this by putting an echo before the if and I got the following output
if I echo the variable above as a test that the variable is set and I get nothing.
what is strange is when the script runs and the $rFServicesCVer is edclaired it seems to run the command and output the correct value so it's as if it's running the command rather then setting it as a variable.
any help much appreciated - if what I've written doesnt make sense let me know as I may not have explained it very well.
Hi Guys,
I like to output every command executed in the script to a file.
I have tried set -x which does the same.
But it is not giving the logs of the child script which is being called from my script.
Is there any parameters in the Set command or someother way where i can see the log... (2 Replies)
I am looking to parse a text file output and set variables based on what is cropped from the parsing.
Below is my script I am looking to add this feature too.
All it does is scan a certain area of users directories for anyone using up more than X amount of disk space. It then writes to the... (4 Replies)
Hi there! :)
How to set varibale to be output of a command in csh.
I was using set i="date+'%y%m%d'" but the output is date+'%y%m%d' and without quites and with a single quote the output is the same :wall: :eek:
Thanks in advance (2 Replies)
shell script has a command inside back quotes in method update_TABLE
I need to store the count of number of Rows updated and store it in shell script variable "num"
num = 0;
Update_TABLE
Update_TABLE()
{
`echo " set verify off feedback off echo off pagesize 0 head off... (4 Replies)
I am trying to make a script to take commands from a .txt file ( line by line) and pass it using send ( used in another function )
what i am trying to achieve is :
set nol "`grep '' ${exp_path2}/cmdlist.txt | wc -l `"
as in shell script
nol=`grep '' $exp_path2/cmdlist.txt | wc -l`
... (0 Replies)
I am trying unsuccessfully to set into a variable a specific part of command output:
The command output will be as:
line 1: <varied>
line 2: 2 options:
option 1:
Set view: ** NONE **
or
option 2:
Set view: <different_name_of_views_always_without_spaces>
and I would like to get into... (7 Replies)
I have a file which I am processing using awk to spit out the following:
export CLIENT=1 ; export USER=1 ; export METABASE=1 ; export TASK=1 ; export TOTAL=3
What i want to do now is execute that within the script so those variables are available to other commands. I've tried piping the... (3 Replies)
Hi all,
I want to set a variable in ksh shell (prompt) and echo the value.
$ set x=5
$echo $x
But it is returning null. Can any one please help.
Thanks in advance (1 Reply)
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)