Hello friends,
i run two scripts manually & they work.
i run them in cron & they don work.
how to match the two env's
1.command line env
2.cron env
i would like cron to use command line env.
Thanks & Regards
Abhijeet (1 Reply)
Not sure what has changed in the Unix environment.
The following script which was working is now not working.
#!/usr/bin/ksh
# -----------------------------------------------------------------------------
# File: monitor_db.sh
#
#... (1 Reply)
Question 1: If I set ENV=$HOME/myenvprofile.ksh, will my script get executed when ever I login to my with KSH. My doubt is we used to put this in .profile of our home directory. SO when ever I login will it executed?
QUestion 2: If I set ENV=`echo "hi"` or 'echo "hi" ', what would be the output.... (0 Replies)
I have 2 scripts t2.sh calls t1.sh. I need to get the vaule of a env variable from t1.sh
/tmp/test$ cat t1.sh
#!/bin/sh
INSTANCE="font/fc-cache"
export INSTANCE
svcadm disable ${INSTANCE}
/tmp/test$ cat t2.sh
#!/bin/sh
. /tmp/test/t1.sh
echo ${INSTANCE}
The above works... (9 Replies)
Hello,
I want to cange env variable on SunOS.
I tried:
export GONGA=$GONGA:/users/BANK1/basic/queues/SARON_SPACE1
it changed it only localy for my session.
when i opened a new session (telnet etc') the old value exist.
How can I change it to effact all sessions.
Thanks. (2 Replies)
Hi,
Am installing SAP on Solaris 10. How to set env variables permanently?
Reg (0 Replies)
Discussion started by: daggupati453
0 Replies
LEARN ABOUT ULTRIX
sigsetjmp
sigsetjmp(3) Library Functions Manual sigsetjmp(3)Name
sigsetjmp, siglongjmp - nonlocal goto
Syntax
#include <setjmp.h>
sigsetjmp(env, savemask)
sigjmp_buf env;
void siglongjmp(env, val)
sigjmp_buf env;
Description
These routines deal with errors and interrupts encountered in a low-level subroutine of a program.
The subroutine saves its stack environment in env for later use by It returns a value of 0. If the value of the savemask argument is not
zero, the subroutine also saves the process' current signal mask as part of the calling environment.
The subroutine restores the environment saved by the last call of with the supplied env buffer. If the env argument was initialized by a
call to the subroutine with a nonzero savemask argument, the subroutine restores the saved signal mask. It then returns in such a way that
execution continues as if the call of had just returned the value val to the subroutine that invoked which must not itself have returned in
the interim. However, cannot cause to return the value 0. If is invoked with a val of 0, returns a value of 1. All accessible data have
values as of the time was called.
Restrictions
The subroutine does not save the current notion of whether the process is executing on the signal stack. When you invoke the subroutine,
the signal stack is left in an incorrect state.
See Alsosigstack(2), sigvec(2), signal(3), sigprocmask(3)sigsetjmp(3)