Expect Script called from some other script works from Cron but only some files not all
Hi,
I have a Script in Solaris Machine that Generates Html Files total 23 nos
Then in that i have a expect script called from main script that copies html files to Other server which is Linux
Some times it don't copy all files and some times it copies File but with Size 0kb while file generated are proper
Here is my expect script
and My Cron Job is like this
and output of Cron log is
can anyone tell me where i am wrong works perfectly when run manually
and also i have used /etc/profile in my main Script
I'm puzzled by this one. I hope you can explain it to me.
I have a ksh shell script that gzips a file among other things. This works perfectly fine when the script is manually run through a shell. However, when the same script is run through cron, it does everything correctly, but it will... (2 Replies)
Hello expert,
What I want is to determine whether the script is called from CRON or it is executed interactively?
I tried the following but no luck:
#!/bin/ksh
cronID=`pgrep -x cron`
GPID=`ps -ef -o ppid,pid | grep " $PPID$" | awk '{print $1}'`
if ; then
echo I am being run... (15 Replies)
Hello,
I have the following script which works fine when ran from the command line:
#!/apps/python/2.3.4/bin/python
import os
import sys
import time
user = os.getenv("USER")
string = time.strftime("%m%d%y0000 " + user, time.gmtime())
However, when I have this run by crontab, I... (4 Replies)
Hi,
I am building a web interface to run a series of shell scripts that reside on the web server. The bash script are written such that they can be used independently for the task they are meant for, or the same scripts can be run from this web UI. The scripts are mostly for doing software... (1 Reply)
Hi All,
I am calling a series of shell scripts via CRON so everything is running as root. However, in my error log file I am seeing the following errors. Please can anyone offer any advise as to the possible causes and solution to prevent the errors from appearing.
The Error 1227 seems to... (2 Replies)
Having issues with an expect script. I've been scripting bash, python, etc... for a couple years now, but just started to try and use Expect. Trying to create a script that takes in some arguments, and then for now, just runs a pwd command(for testing, final will be command I pass).
Here is... (0 Replies)
I'm having a problem scripting Expect to work as a Nagios check. The script runs fine from the cli, but not when run as a Nagios check. I turn on the debug output, and it looks like it's not seeing the whole buffer's worth of info, like it's paged interactively somehow. I'm new to Expect, but this... (1 Reply)
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 gurus,
I am making what I think is a simple db2 call from within a shell script but I am having difficulty producing the desired
report when I run the script shown below from a shell script in cron. For example, my script and the crontab file setup
is shown below:
#!/bin/ksh
db2... (3 Replies)
Discussion started by: okonita
3 Replies
LEARN ABOUT DEBIAN
jifty::script::po
Jifty::Script::Po(3pm) User Contributed Perl Documentation Jifty::Script::Po(3pm)
options
Returns a hash of all the options this script takes. (See the usage message for details)
run
Runs the "update_catalogs" method.
_check_mime_type FILENAME
This routine returns a mimetype for the file "FILENAME".
update_catalogs
Extracts localizable messages from all files in your application, finds all your message catalogs and updates them with new and changed
messages.
update_catalog FILENAME
Reads "FILENAME", a message catalog and integrates new or changed translations.
extract_messages
Find all translatable messages in your application, using Locale::Maketext::Extract.
print_help
Prints out help for the package using pod2usage.
If the user specified --help, prints a brief usage message
If the user specified --man, prints out a manpage
pot_name
Returns the name of the po template.
NAME
Jifty::Script::Po - Extract translatable strings from your application
SYNOPSIS
jifty po --language <lang> Creates a <lang>.po file for translation
jifty po Updates all existing po files
Options:
--language Language to deal with
--dir Additional directories to extract from
--js Generate json files from the current po files
--help brief help message
--man full documentation
OPTIONS --language
This script an option, "--language", which is optional; it is the name of a message catalog to create.
--dir Specify explicit directories to extract from. Can be used multiple times. The default directories will not be extracted if you use
this option.
--template_name
Specify the name of the po template. Default to the lower-cased application name.
--podir Specify the directory of the po templates.
--js If "--js" is given, other options are ignored and the script will generate json files for each language under
share/web/static/js/dict from the current po files. Before doing so, you might want to run "jifty po" with "--dir
share/web/static/js" to include messages from javascript in your po files.
--help Print a brief help message and exits.
--man Prints the manual page and exits.
DESCRIPTION
Extracts message catalogs for your Jifty app. When run, Jifty will update all existing message catalogs, as well as create a new one if you
specify a --language option.
perl v5.14.2 2010-12-08 Jifty::Script::Po(3pm)