LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices



Reply
 
Search this Thread
Old 10-08-2012, 04:53 PM   #1
egarreg
LQ Newbie
 
Registered: Feb 2011
Posts: 2

Rep: Reputation: 0
cronjob issue


I am getting this error and its filling up /var/mail; how can I fix this?


Your "cron" job on alpotaapp-c03
. .profile; $OTA_SC_LOG_ROOT/trace/apisnoop/oodata/tsoodata.sh

produced the following output:

sh: ?: not found
stty: : No such device or address
 
Old 10-08-2012, 10:06 PM   #2
nugat
Member
 
Registered: Sep 2012
Posts: 122

Rep: Reputation: 31
Quote:
Originally Posted by egarreg View Post
I am getting this error and its filling up /var/mail; how can I fix this?


Your "cron" job on alpotaapp-c03
. .profile; $OTA_SC_LOG_ROOT/trace/apisnoop/oodata/tsoodata.sh

produced the following output:

sh: ?: not found
stty: : No such device or address
show the contents of that script:
Code:
cat $OTA_SC_LOG_ROOT/trace/apisnoop/oodata/tsoodata.sh
 
Old 10-09-2012, 01:44 AM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
and the .profile content too.
 
Old 10-09-2012, 11:18 AM   #4
egarreg
LQ Newbie
 
Registered: Feb 2011
Posts: 2

Original Poster
Rep: Reputation: 0
cat $OTA_SC_LOG_ROOT/trace/apisnoop/oodata/tsoodata.sh
#!/usr/bin/ksh --

LOG=//var/opt/smarttrust/dpa/log/trace/apisnoop/oodata/tsoodata_`/usr/bin/date +%Y%m%d`.txt

/usr/bin/echo "====================================================== " >> $LOG
/usr/bin/echo "STARTED `/usr/bin/date`" >> $LOG
/usr/bin/echo "====================================================== " >> $LOG
/appl/smarttrust/dpa/dp/bin/dtool diag -l 10.162.7.179 10100 >> $LOG

******************************************************************************************


VISUAL=vi
DPTRACELEVEL=2
OTA_HOME=/appl/smarttrust/dpa/dp
DP_HOME=/appl/smarttrust/dpa
OTA_SC_SOFTWARE_ROOT=/appl/smarttrust/dpa/dp
OTA_SC_LOG_ROOT=/var/opt/smarttrust/dpa/log
OTA_SC_DATA_ROOT=/var/opt/smarttrust/dpa/data
OTA_SC_SDK_ROOT=/appl/smarttrust/dpa/dp/sdk
DP_SINGLE_NODE=YES
export VISUAL DPTRACELEVEL OTA_HOME DP_HOME OTA_SC_SOFTWARE_ROOT OTA_SC_LOG_ROOT OTA_SC_DATA_ROOT OTA_SC_SDK_ROOT DP_SINGLE_NODE

# Source the otaenv file
. $OTA_SC_SOFTWARE_ROOT/.otaenv

OPENWINHOME=/usr/openwin
PATH=.:/opt/SUNWste/bin:/usr/bin:/usr/sbin:/etc:/usr/ccs/bin:/usr/ucb:$OPENWINHOME/bin:$ORACLE_HOME/bin:$OTA_SC_SOFTWARE_ROOT/bin:/opt/bin:/usr/local/bin
MANPATH=$OPENWINHOME/share/man:$OPENWINHOME/man:/usr/man
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib32:$ORACLE_HOME/lib:$OPENWINHOME/lib:/opt/SUNWconn/lib:$OTA_SC_SOFTWARE_ROOT/library

# Path used for GemExplorer98 Gateway card module.
SCENARIO_LIB_PATH=$OTA_SC_SOFTWARE_ROOT/config; export SCENARIO_LIB_PATH

# Path used by SNMP master agent.
SR_AGT_CONF_DIR=$OTA_SC_SOFTWARE_ROOT/config
export OPENWINHOME PATH MANPATH LD_LIBRARY_PATH SCENARIO_LIB_PATH SR_AGT_CONF_DIR

# DATE for crontab logging
LOG_DATE=`date '+%Y%m%d'`
export LOG_DATE

ulimit -n 1024

PS1="`whoami`@`hostname`> "
export PS1

alias dp="/appl/smarttrust/dpa/dp/bin/dpoperator"
alias dpcm="/appl/smarttrust/dpa/dp/bin/configurationmanager"
alias dt='dtool diag 10.162.7.178 10106;dtool diag 10.162.7.179 10100'
alias sfmlog="tail -100f $OTA_SC_LOG_ROOT/trace/sfm/sfm1a`date '+%Y%m%d'`.log"
alias tslog="tail -100f $OTA_SC_LOG_ROOT/trace/transport/ts1a`date '+%Y%m%d'`.log"
alias aaclog="tail -100f $OTA_SC_LOG_ROOT/trace/system/aacserver`date '+%Y%m%d'`.log"
alias evlog="tail -100f $OTA_SC_LOG_ROOT/trace/system/eventlogserver`date '+%Y%m%d'`.log"
alias bomlog="tail -100f $OTA_SC_LOG_ROOT/trace/bom/bomserver`date '+%Y%m%d'`.log"
alias bomclog="tail -100f $OTA_SC_LOG_ROOT/trace/bom/bomclient`date '+%Y%m%d'`.log"
alias simlog="tail -100f $OTA_SC_LOG_ROOT/trace/sim_import/simimport`date '+%Y%m%d'`.log"

SS7_CP_CONFIGFILE="/appl/smarttrust/dpa/dp/config/cp.cnf"
export SS7_CP_CONFIGFILE

if (test ! -d /var/opt/smarttrust/dpa/log/trace/ss7)
then
mkdir -p /var/opt/smarttrust/dpa/log/trace/ss7
fi

Last edited by egarreg; 10-09-2012 at 11:46 AM. Reason: Add more information
 
Old 10-09-2012, 08:46 PM   #5
nugat
Member
 
Registered: Sep 2012
Posts: 122

Rep: Reputation: 31
i don't see anything in either of those files that would cause that. try them one by one.

first:
Code:
. .profile
do you see any errors/output?

then:
Code:
$OTA_SC_LOG_ROOT/trace/apisnoop/oodata/tsoodata.sh
any errors/output?

if so, then try to narrow it down. is the "dtool" program a binary or a text script? you can check with:

Code:
file /appl/smarttrust/dpa/dp/bin/dtool
try to run that command by itself and see if it causes the error:
Code:
/appl/smarttrust/dpa/dp/bin/dtool diag -l 10.162.7.179 10100
Note: be prepared to Ctrl+C or whatever to cancel it, if necessary.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cronjob issue raj47 Linux - Server 8 05-16-2012 12:10 AM
[SOLVED] Cronjob brownie_cookie Linux - Newbie 1 04-13-2011 11:17 AM
cronjob help LinuxNeo Linux - Newbie 6 10-13-2010 11:54 PM
cronjob xser Linux - Software 6 07-27-2008 10:38 PM
Cronjob engnet Linux - Networking 6 03-03-2004 10:21 AM


All times are GMT -5. The time now is 06:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration