Next time post your code in [ CODE ] [ /CODE ] blocks.
But using my intuition I can guess that your EOF has spaces to the left of it. It should immediately follow the line feed.
Not like this
but like this
Sorry for that..As much as possible I am trying my best to explain.
Now I am doing like below First method:
Its working fine.
Please help me do the same with <<EOF
Yes I did that..
But One problem when I do the same with a temporary file, I mean with the 1st method the plot remains there until I press quit. But in this case ie, <<EOF case it comes for a fraction of second then vanish automatically..
Thank you..
user_prady
--
Last edited by user_prady; 11-15-2007 at 04:20 AM..
Hello
say i have written some perl scripts , now i like to call them in my unix shell
as unix command like "more" , "ls" , "grep" so that my say perl script called "foo.pl"
will be called from every where as "foo" or "foo arg1 arg2"?
Thanks (1 Reply)
I have the command
cat - << _EOF | ed /home/fred/test >/dev/null 2>&1
2 s#u_pwd=*:#u_pwd=${Password}:#
3,$ s/u_succhg#*:/u_succhg#${Date}:/
w
q
_EOF
I works great on the local system but I need to ssh to a remote system and run this command without... (1 Reply)
Hi all.
I have a problem renaming a file.
It is called "data_200711051002.csv" (for example) and I want to rename it automatically to "data.csv" in a routine in a program named Ascential.
Those numbers are a time stamp, so every time the file is loaded into the server, they will change.
... (2 Replies)
Hi,
i am launching a script which open a ssh connexion to a cluster's node. Once on the node, the script calls the problematic command head and wc.
I receive a message error as follow which come from two different scripts :
line 31: head: command not found
line 18: wc: command not found
... (6 Replies)
Hello experts,
I have a perl script which looks for the ARGV and then loads the data as per it.
Example.
#Checking the server to connect
if ($ARGV eq 'QA')
{
$ENV{"ORACLE_HOME"} = "/oracle/product/11.2.0";
$ENV{"PATH"} = "$ENV{'PATH'}:/oracle/product/11.2.0/bin";
... (1 Reply)
In a bash script, one can call a perl command in the following manner, where "myperlcommand" is a perl command.
perl -e 'myperlcommand(arguments)'
perl -e 'print("UUUU"x4)'
Now, how can one call a bash command from within a perl script? (Suppose that mybashcommand is a bash... (1 Reply)
I originally had a script written in pure shell that I used to parse logs in real time and create a pipe delimited file that only contained errors. It worked but it was using a lot of memory (still not clear on why). I originally got around this by writing a wrapper for the script that ran on cron... (1 Reply)
My first post evidently did not materialize so I posted it again:
Runnning a cron job every 5 mins to send data files to a state facility.
My original cron entry at worked fine:
01,06,11,16,21,26,31,36,41,46,51,56 * * * * /home/sftpuser/stateinoc-from-appname.ksh
Somewhere I have a... (1 Reply)
Hi
I have two scripts script1.sh and script2.sh(say this script is a long running).
I want to call script2.sh inside and script1.sh,but when i call script2.sh i dont want to wait for script2 to complete and want this to run in back ground and go on next commands in script 1.sh and finally at the... (2 Replies)
I have a bash shell script, within it i am using the below two commands . its failing right on scl enable command itself.
if i run it by itself without a shell, it works fine.
by default it is using pythin version 2.6 something. i want to use 3.4 version for that reason with in the shell... (3 Replies)
Discussion started by: cplusplus1
3 Replies
LEARN ABOUT SUNOS
setpgrp
setpgrp(1) User Commands setpgrp(1)NAME
setpgrp - set process group ID
SYNOPSIS
setpgrp command [arg...]
DESCRIPTION
If the current process is not already a session leader, the setpgrp utility sets the process group ID and session ID to the current process
ID and does an exec() of command and its argument(s), if any.
OPERANDS
The following operands are supported:
command The name of a command to be invoked.
arg An option or argument to command.
EXIT STATUS
The following exit values are returned:
1 Error executing the setpgrp utility or during exec() of command.
Otherwise, the exit status will be that of command.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO exec(2), setpgrp(2), attributes(5)SunOS 5.10 5 Jan 2000 setpgrp(1)