Hi ,
I am having one situation in which I need to run some simple unix commands after doing "chroot" command in a shell script. Which in turn creates a new shell.
So scenario is that
- I need to have one shell script which is ran as a part of crontab
- in this shell script I need to do a... (2 Replies)
Hi,
First i would like to say that im a unix begginer.
I have a file named /tmp/sample.lst that contain about 20 rows like the following two :
'/tmp/aa.txt' '/temp/aa.txt'
'/tmp/xx.txt' '/temp/xx.txt'
Inside a ksh script i would like to do the following task:
add the cp command at... (2 Replies)
hi,
i wat to get the output of a grep command in a file. but when i am trying out the same grep command in the unix prompt its working fine.. i am getting the output properly.. but when i am writing the same command inside my shell script , its just creating a new output file with no contents... (1 Reply)
hi,
i wat to get the output of a grep command in a file. but when i am trying out the same grep command in the unix prompt its working fine.. i am getting the output properly.. but when i am writing the same command inside my shell script , its just creating a new output file with no contents... (11 Replies)
I have a command nested in some while loops to parse some data that looks something like this.
while ($condition)
while ($condition)
...
gzcat /dir/$fileName.gz | grep $searchString > out_file
end
end
On the first loop, the command is executed properly (and takes maybe 10... (3 Replies)
Hi all,
I am using the below given sqlplus command in my unix script to invoke a stored procedure which returns a value .It works fine.
RET_CODE=$(/opt/oracle/product/10.2.0.4.CL/bin/sqlplus -S $USER/$PASSWD@$DB_NAME <<EOF
EXEC MY_PKG.MY_SP (:COUNT);
PRINT COUNT;
commit;
... (6 Replies)
Hi everyone,
when executing this command in unix:
echo "WM7 Fatal Alerts:", $(cat query1.txt) > a.csvIt works fine, but running this command in a shell script gives an error saying that there's a syntax error.
here is content of my script:
tdbsrvr$ vi hc.sh
"hc.sh" 22 lines, 509... (4 Replies)
Hello,
Recently, I've started with shell scripting, and decided to write a script for my system backup using tar. When I was dealing with tar execution inside shell script I found this, inside shell we have the following code:
tar $TAR_PARAMS $ARCHIVE_FILE $EXCLUDE $BACKUP_STARTwith... (6 Replies)
hii,,
I am trying to automate jira. during my scripting using bash script, in the terminal i got the terminal message like this:
"Configure which ports JIRA will use.
JIRA requires two TCP ports that are not being used by any other
applications on this machine. The HTTP port is where you... (1 Reply)
#!/bin/sh
# This script returns the number of rows updated from a function
echo "The execution is starting ....."
sqlplus -silent $UP <<EOF
set serveroutput on
set echo off
set pagesize 0
VAR no_rows_updated NUMBER;
EXEC :no_rows_updated :=0;
DECLARE
CURSOR c_update is
SELECT * FROM... (4 Replies)
Discussion started by: LoneRanger
4 Replies
LEARN ABOUT REDHAT
replmarks
REPLMARKS(1) General Commands Manual REPLMARKS(1)NAME
replmarks - replace triangular markers in a RADIANCE scene description
SYNOPSIS
replmarks [ -e ][ -m newmod ][ -s scale ] { -x objfile | -i octree | -I mesh } modname .. [ file .. ]
DESCRIPTION
Replmarks replaces triangular markers identified by the modifier modname in each scene description file and writes the result to the stan-
dard output. The -x option indicates that each marker should be replaced by an appropriate xform(1) command on objfile. The -i option
indicates that each marker should be replaced by an instance of octree. The -I option indicates that each marker should be replaced by an
instance of the Radiance mesh mesh. One of these three options must appear on the command line, along with modname, the modifier used by
markers in the file.
Multiple modifiers may be given, as long as each one is preceded by its own -x or -i option.
The transformation for each marker is determined by its location and orientation. A marker should be a right triangle pointing like a
half-arrow in the direction of the transformed x-axis, x'. The longest side is the hypoteneuse, the second longest side is the x'-axis,
and the third longest side indicates the direction of the y'-axis. Any additional sides will be ignored (ie. a quadrilateral may be used
instead of a triangle if the extra side is small). The z'-axis is determined by the cross product of the x' and y' axes, and the origin is
the common vertex between x' and y'.
The size of the marker is ignored unless the -s option is used, where scale is a multiplier for the x'-axis length to indicate the total
scale factor. For example, a scale value of 5 with a marker length of .5 would result in a total scale factor of 2.5 to be used in the
transformation.
The -e option causes commands in the file to be expanded, and is required to replace markers from commands in the input file. Even with
this option, replmarks will not examine objects for markers. Specifically, an object included by replmarks as a result of a -x expansion
will be transferred verbatim, without regard to any surfaces therein that might have been considered as marks if they were on the main
input.
The -m option causes all replaced objects to be given the modifier newmod. Otherwise, the new object surfaces will use their originally
defined modifiers. A different replacement modifier may be given for each marker type. The marker modifier name itself is only used to
identify markers, and will not appear in the output in any form.
If no input file is given, the standard input is read.
EXAMPLE
To replace all polygons with the modifier ``knobs'' in the file input with a transformed ``knob.rad'' and write the result to output:
replmarks -x knob.rad knobs input > output
To use instances of ``tree.oct'' with scaling set to three times the tree marker length:
replmarks -s 3 -i tree.oct tree input > output
AUTHOR
Greg Ward
SEE ALSO arch2rad(1), ies2rad(1), xform(1)RADIANCE 3/24/94 REPLMARKS(1)