Search Results

Search: Posts Made By: Cvg
1,617
Posted By Cvg
Script won't fails when running from crontab
Hi,

My script runs fine from the command line, but when crontab tries to launch it encounters lack of permissions:

could not open /dev/kbd to get keyboard type US keyboard assumed
could not...
9,562
Posted By Cvg
Yes I tried nawk instead and it works, thanks for...
Yes I tried nawk instead and it works, thanks for your help.
9,562
Posted By Cvg
That's odd, if I run the command you guys...
That's odd, if I run the command you guys provided in my host (I'm using Cygwin) it works, however if I run it in a Solaris machine i'm getting a different output:

echo '08 03 * * 1-5...
9,562
Posted By Cvg
Print a word after a match
Hi all,

I have the below line:

08 03 * * 1-5 XXXXXXXXXXXXX -ENVI LDNFOUAT10 -EXE xxxxxxxx -CONFIG \${xxxxx} -SUBCLASS RESET -START -EXTRAAPPARGS \" -env 38LDNFOUAT10 \" >>...
Forum: Solaris 01-23-2012
5,752
Posted By Cvg
Yes, I checked using env as well: ...
Yes, I checked using env as well:

SHELL=/bin/ksh


Thanks, I've solved it using a script from the cron line, I also understand it's a bit messy trying to script from the cron line.
Forum: Solaris 01-19-2012
5,752
Posted By Cvg
$> ps -p $$ PID TTY TIME CMD 14600...
$> ps -p $$
PID TTY TIME CMD
14600 pts/55 0:01 ksh
Forum: Solaris 01-19-2012
5,752
Posted By Cvg
Thanks! It works this way. I've tried doing it...
Thanks! It works this way. I've tried doing it via script before and it worked as well, but I needed the option to do it directly from the cron line.

Sorry, SunOS is 5.8, with Korn shell.
Forum: Solaris 01-19-2012
5,752
Posted By Cvg
Hi Methyl, Sorry I'm going to separate the...
Hi Methyl,

Sorry I'm going to separate the wheat. The issue is only with the TZ variable, so it comes down to this:

00 * * * 1-5 /apps/sum_glob/fo_live/sparse/bin/dmg_cronlaunch -ENVI...
Forum: Solaris 01-19-2012
5,752
Posted By Cvg
TZ variable not exported when running from cron
Hi,

I have the following executable in cron:

10 * * * 1-5 /apps/bin/dmg_cronlaunch -ENVI ENVIRONMENT -EXE exec -FILE ratespb_sdos_prdf_`TZ=US/Eastern;date +\%Y\%m\%d\%H\%M\%S`.sdos >...
10,376
Posted By Cvg
Thanks! I'm not getting the typeset and function...
Thanks! I'm not getting the typeset and function errors anymore!

I'm getting an error regarding another variable, but that's another story, it loks like this one is solved, I hope I can use this...
10,376
Posted By Cvg
Hi Robin, Btw I didn't mention it before,...
Hi Robin,

Btw I didn't mention it before, the script runs fine if I start it, it's when crontab executes it that fails. Anyway, I modified the script:

#!/bin/ksh

ps -f>/tmp/ps-f
ps...
10,376
Posted By Cvg
I've tried both (didn't know about the second...
I've tried both (didn't know about the second one, thanks) and it still gives the same error. I also think it's a problem with Solaris, but I'm not sure anymore. It's frustrating, I can't seem to...
10,376
Posted By Cvg
Yes, the error output is what I pasted in the...
Yes, the error output is what I pasted in the previous message:

/tmp/tstscript/testfail.ksh: typeset: not found
/tmp/tstscript/testfail.ksh: function: not found
/tmp/tstscript/testfail.ksh:...
10,376
Posted By Cvg
Crontab not running a script
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...
Forum: Solaris 02-21-2011
2,695
Posted By Cvg
I've tried that as well but it's not working....
I've tried that as well but it's not working. Also the default shell is Korn shell:

gbouausr@longmsumu1$> echo $SHELL
/bin/ksh
Forum: Solaris 02-18-2011
2,695
Posted By Cvg
Here it is: #!/usr/bin/ksh typeset -i...
Here it is:

#!/usr/bin/ksh

typeset -i quant
flag=n
DBOS=`env | grep BO | egrep -v "longmsumu1|stream" | awk '{ FS="=+" } { print $1 }' | xargs`
for env in `echo $DBOS`
do
...
Forum: Solaris 02-18-2011
2,695
Posted By Cvg
Script not running from cron
Hi,

I''ve made a script that's running fine from the command line but when running from cron it encounters the following issue:

/tmp/tstscript/testfail.ksh: typeset: not found

I've searched...
Forum: Solaris 01-14-2011
1,993
Posted By Cvg
Thanks very much!
Thanks very much!
Forum: Solaris 01-14-2011
1,993
Posted By Cvg
Command files when the output is assigned to a variable
Hi,

i'm posting this in the Solaris forum although maybe it should be better in the General unix forum, I'm formatting an output witht he following command:

crontab -l | grep GBOUAT8 | grep...
Showing results 1 to 19 of 19

 
All times are GMT -4. The time now is 07:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy