ya i used system(), but i need to generate the output of the shell script to a log file also. i do not know how to send the output of the shell script to a log file from system command.
i want to send the output to a log file..
but the command gives an error.
ok i got the where i did wrong.. i need to include ">/app/home/$NAME/output.log" and "2>/app/home/$NAME/error.err" in double quotes.
---------- Post updated at 03:30 PM ---------- Previous update was at 03:23 PM ----------
I am using the following code in my shell script
list=`sqlplus -s $user/$pwd@$dbms<<EOF
WHENEVER SQLERROR EXIT SQL.SQLCODE
set pagesize 0 feedback off verify off heading off echo off
select * from control_tbl
where src_nm=$3
and extrct_nm=$4;
exit SQL.SQLCODE;
EOF`
ERROR=$?... (1 Reply)
Hi,
I have a sheel script that invokes a perl script...Now, instead havin the perl script as a separate file I'd like put the contents in the sheel script itself...But I am not sure how ro run that perl script contents.please help me
Thanks (1 Reply)
Hi,
I have shell script that checks processes forever.
But somehow it is killed and I want to know what causes it.
while
do
check the processes if they are running, if not restart them
done
I want to capture the output when the script is terminated, how can I do that?
/Andreas (2 Replies)
This is about how to Monitoring folder for new files using shell script
im doing a project using smsserver tools 3. i have used a perl script
to handle incoming messages. the content of each message must be
directed to a java program. this program generates the answer to reply
to the user... (2 Replies)
I need help in the following script. I want to grep the sql errors insert into the error table and exit the shell script if there is any error, otherwise keep running the scripts.
Here is my script
#!/bin/csh -f
source .orapass
set user = $USER
set pass = $PASS
cd /opt/data/scripts
echo... (2 Replies)
Hi ,
I have following code in my shell script :
"$TS_BIN/tranfrmr" "${TS_SETTINGS}/tranfrmr_p1.stx" "${TS_LOGS}/tranfrmr_p1.err" | (
"$TS_BIN/cusparse" "${TS_SETTINGS}/cusparse_p2.stx" "${TS_LOGS}/cusparse_p2.err" | (
"$TS_BIN/tsqsort" "${TS_SETTINGS}/srtforpm_p3.stx"... (8 Replies)
I have bash shell script which is internally calling python script.I would like to know how long python is taking to execute.I am not allowed to do changes in python script.Please note i need to know execution time of python script which is getting executed inside shell .I need to store execution... (2 Replies)
Hi,
We have a problem in Linux (GNU/Linux 3.10.0-693.1.1.el7.x86_64) with a shell script returning 267 as return code. The script, load_flag.sh is called from main_script.sh (both script samples given below). The exit code from load_flag.sh is used to decide whether to continue execution of... (1 Reply)
Discussion started by: Arunnath
1 Replies
LEARN ABOUT OPENSOLARIS
pipelog.conf
pipelog.conf(4) File Formats pipelog.conf(4)NAME
pipelog.conf - pipelog configuration for libpipelog.so of the plugins of gnome-system-log file
SYNOPSIS
/usr/lib/gnome-system-log/plugins/pipelog.conf
DESCRIPTION
The libpipelog.so is a plugin for gnome-system-log(1), it runs commands through
pipes and get the output of the individual pipe as a log content. Users can
copy the file into $HOME/.gnome2/gnome-system-log/plugins/`uname -p` to
overwrite the system default one.
The syntax of pipelog.conf file is:
<log path><whitespace><command>
<command> may be a simple program name (which will be found in $PATH) or an absolute path of a binary with arguments list. "%s" can be
included in <command> zero or one time, will be replaced by <log path> in runtime.
FILES
/usr/lib/gnome-system-log/plugins/pipelog.conf
The system default configuration file for the plugin libpipelog.so
$HOME/.gnome2/gnome-system-log/plugins/`uname -p`/pipelog.conf
The user specific configuration file for the plugin libpipelog.so
EMAMPLE
/var/adm/wtmpx last
/var/adm/utmpx /bin/last -f %s
SEE ALSO gnome-system-log(1), grablogs.conf(4)gnome-utils 2.16.0 13 Oct 2006 pipelog.conf(4)