2 things:
1) Is it in root cronfile?
2) you execute your script like:
Code:
./test.sh -->
but from where?
As already mentionned cron is quite stupid and knows nothing about your environment...
I will not repeat myself XXX time since there are so many threads already about this kind of issue, unless you can show us you have something else and in which case you will awaken the ape's curiosity hidden in each of us (I hope... me anyway...)
Hi,
I made this script for TRU Unix 5.1 OS based Node.
When the script was run manually all the commands were running properly. But when it was run from Crontab, one command is not running.
This command is not running when the script is running from Crontab:
#... (2 Replies)
I am facing a strange issue while running a script(eg A) from the crontab entry
the script calls one more script(eg B) within it
now when i run the script A manually(with nohup) it also executes the script B (embedded inside it) as expected.
but when i run the script A from the crontab entry... (7 Replies)
Hi all,
I wrote small script for Solaris and when I am running it through command prompt its ok, but when I trying to run it using crontab, i am getting error like:
ld.so.1: dbloader: fatal: libACE.so: open failed: No such file or directory
/tmp/file.sh: line 5: 8304 Killed ... (4 Replies)
Hi,
I'm trying the backup a few information commands of my Check Point FW (it's on a SPLAT linux machine). This is the script I wrote:
#!/bin/bash
cd /var/tmp/
file1=netstat_`/bin/date +%d%m%y`.txt
file2=ifconfig_`/bin/date +%d%m%y`.txt
file3=cpstatos_`/bin/date +%d%m%y`.txt... (2 Replies)
I am trying to use the CRON utility in Fedora 11 & CentOS...
I intend to run a script which pops up a warning message every hour and i made the following entry using "CRONTAB -e "
* * * * * sh /bin/myscript.sh
But this does not seem to be running.
Another thing to note is that,... (4 Replies)
Hi, I posted this in the Solaris forum but I think this one would be more appropriate.
I created a script starting with the following lines:
#!/usr/bin/ksh
flag=n
export flag
typeset -i quant=0
(...)
When running it I'm getting the following 2 errors:
/tmp/tstscript/testfail.ksh:... (9 Replies)
Hi,
I have created the below script,
set -x
# Set the Path of Environment file
ENV_FILE_DIR=/opt/app/p1trp1c1/sybase/ecdwqdm/xrbid/QDM_Prod/bin
LOG_DIR=/opt/app/p1trp1c1/sybase/ecdwqdm/xrbid/QDM_Prod/log
export ENV_FILE_DIR
export LOG_DIR
# Set Audit Environment
. ${ENV_FILE_DIR}/QDM.env... (8 Replies)
I am facing an issue where sometimes crontab is running script with some delay.
Below is the stmt in script and it is the only stmt in script.
echo "running at `date` " >> CRONCHECK.log
Below is the cron entry.
0 11 * * * CRONCHECK.sh
Below is the time of run each day.
running at Fri... (8 Replies)
Hi guys!
I created a backup script that works fine when I run manually, but when I put a crontab job to execute it the result are not the expected. (not a time problem).
Here is my script:
bash-3.00# cat /bk_tool/backup2.sh
#!/usr/bin/csh
clear
set DIR_HOST='SCP08'
... (3 Replies)
Hi!
I'm using a RaspberryPi with standard Raspbian.
Currently I'm working on some sort of weather station.
For now I have three python scripts - one which is updating txt files for website - update1m.py ( it will not be necessary in few next days so I'll delete it) , second one for updating... (4 Replies)
Discussion started by: bartocham
4 Replies
LEARN ABOUT PLAN9
pcc
PCC(1) General Commands Manual PCC(1)NAME
pcc - APE C compiler driver
SYNOPSIS
pcc [ option ... ] [ name ... ]
DESCRIPTION
Pcc compiles and loads C programs, using APE (ANSI C/POSIX) include files and libraries. Named files ending with .c are preprocessed with
cpp(1), then compiled with one of the compilers described in 2c(1), as specified by the environment variable $objtype. The object files
are then loaded using one of the loaders described in 2l(1). The options are:
-o out Place loader output in file out instead of the default 2.out, v.out, etc.
-P Omit the compilation and loading phases; leave the result of preprocessing name.c in name.i.
-c Omit the loading phase.
-p Insert profiling code into the executable output.
-w Print compiler warning messages.
-B Don't complain about functions used without ANSI function prototypes.
-v Echo the preprocessing, compiling, and loading commands before they are executed.
-Dname=def
-Dname Define the name to the preprocessor, as if by If no definition is given, the name is defined as
-Uname Undefine the name to the preprocessor, as if by
-Idir files whose names do not begin with are always sought first in the directory of the file argument, then in directories named in
-I options, then in /$objtype/include/ape.
-N Don't optimize compiled code.
-S Print an assembly language version of the object code on standard output.
-a Instead of compiling, print on standard output acid functions (see acid(1)) for examining structures declared in the source
files.
-aa Like -a except that functions for structures declared in included header files are omitted.
The APE environment contains all of the include files and library routines specified in the ANSI C standard (X3.159-1989), as well as those
specified in the IEEE Portable Operating System Interface standard (POSIX, 1003.1-1990, ISO 9945-1). In order to access the POSIX rou-
tines, source programs should define the preprocessor constant _POSIX_SOURCE.
FILES
/sys/include/ape
directory for machine-independent #include files.
/$objtype/include/ape
directory for machine-dependent #include files.
/$objtype/lib/ape/libap.a
ANSI C/POSIX library.
SEE ALSO cpp(1), 2c(1), 2a(1), 2l(1), mk(1), nm(1), acid(1), db(1), prof(1)
Howard Trickey, ``APE -- The ANSI/POSIX Environment''
SOURCE
/sys/src/cmd/pcc.c
BUGS
The locale manipulation functions are minimal. Signal functions and terminal characteristic handlers are only minimally implemented. Link
always fails, because Plan 9 doesn't support multiple links to a file. The functions related to setting effective user and group ids can-
not be implemented because the concept doesn't exist in Plan 9.
PCC(1)