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
scitools
SCITOOLS(1) General Commands Manual SCITOOLS(1)NAME
scitools - run a SciTools command
SYNOPSIS
scitools command [OPTIONS]
DESCRIPTION
The scitools script takes a command and runs a corresponding utility. The available commands are listed below.
file2interactive
Utility for taking a set of Python statements in a file and creating the corresponding interactive Python shell session.
floatdiff
Script for examining differences in regression tests involving floating-point numbers. Used in [1].
regression
Simple front-end script to SciTools' Regression module. Used in [1].
ps2mpeg
Utility for turning a set of PostScript files into an MPEG movie, using mpeg_encode or ppmtompeg.
profiler
Script for simplifying the execution of Python's profiling tools. Used in [1].
rename Script for renaming a set of files by substituting one string or regular expression with another.
subst Script for subsituting a phrase by another in a set of files. Accepts regular expressions. Treated in [1].
replace
Script for subsituting a phrase by another in a set of files. Does not use regular expressions, just plain text (well suited for
substituting text with much use of backslashes, curly braces, and other special characters in regular expressions (e.g., LaTeX
text).
movie Script for creating a movie file from a sequence of image files (frames). By default an HTML file for displaying the image (PNG)
files are made.
pyreport
Processes a Python script and pretty prints the results using LateX. If the script uses show() commands (from scitools.easyviz) they
are caught by pyreport and the resulting graphs are inserted in the output pdf. Comments lines starting with "#!" are interpreted as
rst lines and pretty printed accordingly in the pdf.
[1] H. P. Langtangen: Python Scripting for Computational Science. Third
edition, second printing. Springer, 2009.
OPTIONS -h, --help
Show usage for all commands and exit.
BUGS
Send comments, questions, bug reports etc. to scitools@googlegroups.com.
LICENSE
SciTools is licensed under the new BSD license.
AUTHOR
SciTools is written by Hans Petter Langtangen <hpl@simula.no>, Johannes Ring <johannr@simula.no>, Ilmar Wilbers <ilmarw@simula.no>, and
Rolv E. Bredesen <rolv@simula.no>. This manual page is written by Johannes Ring <johannr@simula.no>.
SCITOOLS(1)