10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I've the following code to log the errors any after the command is executed.
# Ksh 88 Version
log_path=/home/etc/fls/fls_log.log
del_path=/home/etc/fls/to_day
rm $del_path/* >> $log_path 2>&1
But I even want to log if the rm command is success without any error along with... (1 Reply)
Discussion started by: smile689
1 Replies
2. Shell Programming and Scripting
Does anyone know how to write the results (success and failure) to a file. I am using TCSH on a Solaris machine. I have the following code for a successful SCP...could someone help me add to this so it caputres failures also?
CODE SO FAR (received from a previous post):
scp sourcefile.txt... (3 Replies)
Discussion started by: thibodc
3 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I'm executing a python script via cron job. The way it is set up is, I'm editing a file called local00 22 * * * root su - -c "/opt/setup_dir/bin/run_bkp -p"
When this job executes, the command-specific logfile and the syslog (where the logs are supposed to go) show half of the logs(no... (2 Replies)
Discussion started by: ashwini.engr07
2 Replies
4. Shell Programming and Scripting
Hi All,
how can i edit my original data and add more data if my 2nd script outputs SUCESS?
ex.
input file:
1.txt
nik,is,the
1script.sh
if 2ndscript.sh output SUCCESS then i'm going to edit my input file and add data best,pogi..
sample outputdata.
nik,is,the,best,pogi
2ndscript.sh... (3 Replies)
Discussion started by: nikki1200
3 Replies
5. Shell Programming and Scripting
hello,
I'm trying to upload a file to this ftp server and others ftp://ftp.byethost12.com as you can see in the output of CURL using the -v option
curl reports that the upload succeeded but when i connected to the server with file-zilla there is no file uploaded the same command
upload files... (5 Replies)
Discussion started by: laraaj
5 Replies
6. Shell Programming and Scripting
I am using ndmcli to NDM my files. When i do so it prints success for the process, with out any errors, but file is not reached at destination.
ndmcli -x << EOJ
submit phcdb process snode=$RMT_NODE_NAME
step01 copy from (file=$SRC_FILE_NAME pnode)
to (file=$DST_FILE_NAME
snode... (0 Replies)
Discussion started by: pattamuthu
0 Replies
7. Shell Programming and Scripting
I need to add 10 records to database from a file /tmp/authlist.log(contains insert into table sql commands)
When i execute the following script manually its executing and working fine.
the same is not getting executed when i try to execute using crontab
vi /tmp/test1.sh
#!/bin/sh... (4 Replies)
Discussion started by: kalyankalyan
4 Replies
8. UNIX for Dummies Questions & Answers
My job is launched using this command: I'm at home and having VPN drops so I used nohup and background.
nohup perf_mon -c rating_4_multi,cfg &
The main script is PID 26119, and the sub task under it is 26118 which is not running - just sits there. 26119 runs forever but nothing else runs. I... (2 Replies)
Discussion started by: ido1957
2 Replies
9. UNIX for Dummies Questions & Answers
Hi All,
I have scheduled a script in cron which writes output to the below file.
....>> /data/Target/wrapper_invoke_ds_job_`date '+%Y%m%d'`.ksh_out 2>&1
But the date command is not getting resolved in the format specified. It just resolves to the following.
wrapper_invoke_MQ_ds_job_Tue... (3 Replies)
Discussion started by: pkm_oec
3 Replies
10. Shell Programming and Scripting
I want to put a exit if there is no file found.
In the directory I can have multiple txt files with EPISGCHGS as prefix or maynot have one.
When I am trying the following it is erroring if there is no text file with the EPISGCHGS as prefix.
for file in EPISGCHGS*.txt
do
cat $file >... (2 Replies)
Discussion started by: apps_user
2 Replies