Hi Methyl,
I tested the script with contents as mentioned by you but that did'nt work through cron job.
In order to test if the issue is related to wrong scripting ode, I created the following simple script.
This script if executed manually through putty: sh xyz.sh removes the .dmp file from the myfolder.
The same script when cronned: generates a blank log file but does not removes the .dmp file.
I am really not sure whatss going wrong now.
Last edited by methyl; 07-05-2012 at 03:35 PM..
Reason: please use code tags
I have a very basic script that essentially sends a log file, via FTP, to a backup server. My cron entry to run this every night is:
55 23 * * * /usr/bin/archive_logs
The script runs perfectly when executed manually, and actually worked via cron for about three weeks. However, it mysteriously... (3 Replies)
Hi
Script not getting executed via cron but executes successfully when executed manually. Please assist
cbspsap01(appuser) /app/scripts > cat restart.sh
#!/bin/ksh
cd /app/bin
date >>logfile.out
echo "Restart has been started....." >>logfile.out
date >>logfile.out
initfnsw -y restart... (3 Replies)
Hello,
I am working one one script where I am using the below code which is using to connect with MKS client when I run my script manually it works effiecently i.e. it connects with MKS client but when I run it from CRON it doesn't connect.
1)Can some one tell when it is running from cron... (1 Reply)
Hello Guys,
I have scratched my head alot on this but couldn't find clue what's wrong. Can you please help me with this? My problem is as following.
1) When I manually execute following script it runs successfully with below output.
bash-3.00# more smssend
#!/bin/bash
echo -e "<Request... (16 Replies)
Help. My script is working fine when executed manually but the cron seems not to catch up the command when registered.
The script is as follow:
#!/bin/sh
for file in file_1.txt file_2.txt file_3.txt
do
awk '{ print "0" }' $file > tmp.tmp
mv tmp.tmp $file
done
And the cron... (2 Replies)
Hello Team,
As a part of my job we have made a script to automate a service to restart frequently.
Script having two functions when executing it's should find the existing service and kill it, then start the same service . Verified the script it's working fine when executing... (18 Replies)
I get a different output when i manually run the .sh script and when it is run by a cron job. Please help me ..
TMP1="/lhome/bbuser/script/wslog/sar.t1"
TMP2="/lhome/bbuser/script/wslog/sar.t2"
TMP3="/lhome/bbuser/script/wslog/sar.t3"
OUTPUT="/lhome/bbuser/script/wslog/sar.out"... (8 Replies)
Hi, I've got a Bash backup script I'm trying to run on a directory via a cron job nightly. If I ssh in and run the script manually it works flawlessly. If I set up the cron to run evertything is totally messed up I don't even know where to begin.
Basically the path structure is
... (6 Replies)
Hello Lads,
I deployed a script on my mac to start and stop EC2 instances on AWS console. The script when started manually on the terminal does the expected stop and start. Problem is when i try to schedule it on a cron, it fails to recognize the AWS Keys which i set up as ENV variable by... (2 Replies)
Discussion started by: Irishboy24
2 Replies
LEARN ABOUT DEBIAN
fwb_compile_all
fwb_compile_all(1) Firewall Builder fwb_compile_all(1)NAME
fwb_compile_all - Wrapper script that compiles policies for multiple firewall objects
SYNOPSIS
fwb_compile_all -ffile.xml [-dwdir] [-av] [obj[ obj ...]]
DESCRIPTION
fwb_compile_all is a wrapper script that compiles policies for several firewall objects in one batch job. This script takes a list of fire-
wall object names on the command line (or '-a' command line option, see below) and calls policy compiler for each one. The script correctly
determines which policy compiler is needed depending on the firewall platform of each object.
OPTIONS -a The script processes all firewall objects in the "/Firewalls" subtree.
-d wdir
Specify working directory. Compiler creates file with iptables script in this directory. If this parameter is missing, then ipta-
bles script will be placed in the current working directory.
-f FILE
Specify the name of the data file to be processed.
-v Script passes this option to the compiler, this makes it print diagnostic messages indicating its progress.
URL
Firewall Builder home page is located at the following URL: http://www.fwbuilder.org/
BUGS
Please report bugs using bug tracking system on SourceForge:
http://sourceforge.net/tracker/?group_id=5314&atid=105314
SEE ALSO fwbuilder(1), fwb_ipt(1)fwb_ipf(1)fwb_pf(1)fwbedit(1), fwblookup(1)FWB fwb_compile_all(1)