Hi there
i am trying to pass the result of a remote command into a variable into my script
ie
#!/bin/sh
var = `ssh remote_box 'uname'`
echo $var
but all i get back is
./script.sh: var: not found
However when i add a -x to put it into diag mode i get the following
+ ssh... (2 Replies)
Hi ,
I am trying following .
I need to get a result of an autosys cmd into a unix variable.
The autosys cmd is
autostatus -G jpm_day_today
Please help me in storing the value returned by this cmd into a unix variable.
Appreciate your time to read this post. (1 Reply)
Hi friends,
firstly, i can run following expression and i took 100 value.
sqlplus -s username/password@TTTEST @umt.sql
umt.sql exists "select t.deger from parametre t where t.id=30".
result of this query =100
i need to assign this value(100) to variable(for example x... (2 Replies)
Hi All,
How can i take the following code having three seds into a variable :
echo "$DateFileFormat" | sed 's/\./\\\\./g' | sed 's/\$/+/g' | sed 's/\#/'$job_date'/g'
I want to get the result stored in a script variable
i tried
var2=`echo "$DateFileFormat" | sed 's/\./\\\\./g' |... (4 Replies)
Hi all,
I'll try to get a result from a search with "awk" into a variable.
It works for those examples:
findfirstline=`awk 'BEGIN{ mycount = 1 } { if(mycount == 1 && /^Video/){ row=NR; print row; mycount = 0; }}' ${i}`
findlastline=`awk '/^Video/ {row=NR} END{print row}' ${i}`
But it... (6 Replies)
Hey everyone
I have a file 'agenda' which contains:
Object Day Month Year
Birthday 09 02 2012
i want to extract from a script the line which contains the day the user typed.
for example if he type 09 the line is showed using... (4 Replies)
Hi,
i have two variables i.e
lck_ckm_customer=ckm_customer and(present in some script A)
table=ckm_customer(present in script B)
in script B i am executing this part
if ; then
---
----
----
fi
Now, while comparing in my log file i am getting this result
if
but i... (2 Replies)
I have friends that this command worked perfectly, but I would like to save the result in a variable, which I have not achieved
var=prueba.txt
echo $var | cut -d "." -f 1
prueba
I need to do this but does not work me
salida=echo $var | cut -d "." -f 1
echo "result:$salida"
... (8 Replies)
Hi,
i have a source file and have 3 columns and separated by "|" .i want to split this 3 columns in different variable.When i am executing this values indivisually giving correct result but when the same execute inside a for loop,it's giving issues.
Src file(jjj.txt)
-------... (8 Replies)
Discussion started by: raju2016
8 Replies
LEARN ABOUT PHP
rsensor
RSENSOR(1) General Commands Manual RSENSOR(1)NAME
rsensor - compute sensor signal from a RADIANCE scene
SYNOPSIS
rsensor [ -n nprocs ][ -h ][ render options ] [ $EVAR ] [ @file ] { [ -rd nrays ][ -dn nsrc ][ sensor_view ] sensor_file .. } octree
rsensor [ -h ] { [ -rd nrays ][ sensor_view ] sensor_file .. } .
rsensor [ options ] -defaults
DESCRIPTION
Rsensor traces rays outward from one or more specified illumination sensors into the RADIANCE scene given by octree, sending the computed
sensor value to the standard output. (The octree may be given as the output of a command enclosed in quotes and preceded by a `!'.) In
the second form, a single period ('.') is given in place of an octree, and the origin and directions of the specified number of rays will
be printed on the standard output. If these rays are later traced and added together, the results will sum to a signal proportional to the
given sensor distribution. In the third form, the default values for the options (modified by those options present) are printed with a
brief explanation.
Options may be given on the command line and/or read from the environment and/or read from a file. A command argument beginning with a
dollar sign ('$') is immediately replaced by the contents of the given environment variable. A command argument beginning with an at sign
('@') is immediately replaced by the contents of the given file.
The sensor files themselves will be searched for in the path locations specified by the RAYPATH environment variable, similar to other
types of Radiance auxiliary files. If the sensor file path begins with '/', '.' or '~', no search will take place. Before each sensor
file, a separate view may be specified. In this case, the view origin and direction will correspond to the position and orientation of the
sensor, and the view up vector will determine the zero azimuthal direction of the sensor. The fore clipping distance may be used as well,
but other view options will be ignored. (See rpict(1) for details on how to specify a view.) The actual data contained in the sensor file
corresponds to the SPOT tab-separated matrix specification, where the column header has "degrees" in the leftmost column, followed by
evenly-spaced azimuthal angles. Each row begins with the polar angle, and is followed by the relative sensitivity values for each direc-
tion. A low-resolution example of a sensor file is given below:
degrees 0 90 180 270
0 .02 .04 .02 .04
45 .01 .02 .01 .02
90 .001 .002 .001 .002
As well as different views, the number of samples may be changed between sensors, where the -rd option controls the number of ray samples
sent at random, and the -dn option controls the number of rays sent to each light source per sensor.
The -h option toggles header output, which defaults to "on." The -n option may be used to specify multiple calculation processes on sys-
tems with more than one CPU. For additional options, consult the rtrace(1) man page. The final octree argument must be given, as the
octree cannot be read from the standard input.
EXAMPLES
To compute values for the same sensor with two different positions:
rsensor -ab 2 -vf posA.vf mysens.dat -vf posB.vf mysens.dat scene.oct
To generate a set of rays corresponding to a given sensor and compute the resulting signal with rtrace:
rsensor -h -vf posC.vf mysens.dat . | rtrace -h scene.oct | total -m
ENVIRONMENT
RAYPATH the directories to check for auxiliary files.
AUTHOR
Greg Ward for Architectural Energy Corporation
SEE ALSO oconv(1), rpict(1), rtcontrib(1), rtrace(1)RADIANCE 4/11/2008 RSENSOR(1)