Problem with cron due to TERM
I used to work on HP-UX and schedule jobs using cronjob. TERM was initialized in .profile using following -
if [ "$TERM" = "" ]
then
eval ` tset -s -Q -m ':?hp' `
else
eval ` tset -s -Q `
fi
In cron, while executing a job, I used to call .profile to read variables. I used to do like this in cron-
0 0 * * * export TERM=""; . .profile>/dev/null 2>&1; <the actual program>
tset is not working in Solaris. cron is unable to execute due to TERM error. I tried by setting TERM=vt100 and also TERM=sun. Both failed. Any suggestion is highly appreciated.
Thanks,
bg2030
Another thing I notice is -
cron is having issue executing .profile. I mean I can run this via cron
* * * * * test.sh;However, I cannot run this -
* * * * * . .profile>/dev/null 2>&1; test.sh;If I include the .profile lin in the shell script and schedule it through cron, it is not executed. But, I can execute the same file manually.
It seems cron is having some issue with .profile. I also tried with . $HOME/.profile but it didnt work.
Is there any special setting needs to be done for cron to execute .profile.
thanks,
bg2030
Edited by: bg2030 on Jul 15, 2009 5:46 AM
Similar Messages
-
Facing problems with network due which the phone goes into hangs status
Facing problems with network due which the phone goes into hangs status. some one help me with switching between 2g and 3G network
Hi Mani Nair,
I apologize, I'm a bit unclear on the exact nature of the issue you are describing. If you are talking about having issues with a 3G cellular data network, you may find the troubleshooting steps outlined in the following article helpful:
iPhone cellular data connection issues
Regards,
- Brenden -
Hi Have problems with Firefox Aurora in terms of strange links in the text on different pages you visit. This occurs only on Firefox, not on other type internet explorer. What could be wrong? Thorbjorn
Do a malware check with some malware scanning programs on the Windows computer.<br />
You need to scan with all programs because each program detects different malware.<br />
Make sure that you update each program to get the latest version of their databases before doing a scan.<br /><br />
*http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
*http://www.superantispyware.com/ - SuperAntispyware
*http://www.microsoft.com/security/scanner/en-us/default.aspx - Microsoft Safety Scanner
*http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
*http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
You can also do a check for a rootkit infection with TDSSKiller.
*http://support.kaspersky.com/viruses/solutions?qid=208280684
See also:
*"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked -
Hi all,
I know cron has all but been replaced by launchd and periodic, but for various reasons I still need to use it, and it's not working for me.
I'm running 10.4.8 server, and Cron jobs won't run. I've got a file called 'root' located in /var/cron/tabs/ with ownership of root:wheel and permissions of 600. I'm trying to run the job every 15 minutes. Output of 'sudo crontab -u root -l' is:
*/15 * * * /path/to/my/command
If I copy and paste the command part of the line above into terminal, preceded by 'sudo ' the command runs fine, so I know the syntax is OK. But cron doesn't run the job, and the system.log and console.log are totally silent.
I've tried rebooting the server, and I've checked that the command is executable, but can't think of anything else.
Points promised to any solvers! TIA.
Mac OS X (10.4.8)Assuming that Camelot's suggestions all worked out, the most prevelant problem with cron jobs, in my experience, is that cron doesn't use the same environment as a user session. This usually shows up in differences in the PATH variable. Everyone, once in their life should set up a cron job to run a few minutes into the future to run:
/usr/bin/printenv > /Users/me/Desktop/printenv.txt
If you want to cut through it quicker:
echo $PATH
copy the output of that command and add a line to your script (assuming it's a bash script):
export PATH="<paste here>"
keep the quotes. See if that does it.
Roger -
Problem with Billing due list, relating to Returns Credits
Hi
I have a query/ problem with the billing due list
I cannot seem to be able to create billing documents via VF04 for Returns credits, only via VF01
I have changed Billing relevance of Item category REN to be A - Delivery related,
As we previously had problems with incorrect qty being billed IF returned delivery quantity was different to Returns order quantity - this resolved the problem but I now cannot create billing via billing due list
Messsage appears ' delivery type LR cannot be invoiced with billing type F2'
If i enter billing type RE then the document is not gettting picked up at all
when Billing relevance of item category was B, order related - all seemed to be working ok
I have copy controls set up from LR to RE with item category REN, with pricing type G
Please advise how i can get the Returns to appear in the billing due list
many thanks for your help
TonyHi,
In copy controll VTFL
LR to F2 at item level
REN >>> Deatila >>> Put billing quantity as - D delivery related
Kapil -
[SOLVED] Problem with cron and unison
I've got a very strange problem I cannot solve.
I have set unison to synchronize my laptop (mercure) against my home computer (jupiter). It works really fine.
I can run it from the terminal:
unison -batch CERTES
and it runs good.
I have set ssh keys so that id doesn't ask me for a password. And that runs fine too because if I do ssh to jupiter, I log in without any password.
That's what the unison profile looks like:
[jordi@mercure ~]$ cat .unison/CERTES.prf
root = /home/jordi/CERTES
root = ssh://[email protected]//home/jordi/Macbook
After this, everything is ok.
Then I set a cron job so this is done once an hour everyday using crontab -e:
0 * * * * /usr/bin/unison -batch CERTES
And every hour I receive this mail:
Contacting server...
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password).
Fatal error: Lost connection with the server
Ok then, this seems like cron can't log into jupiter with ssh as I thought. So I modify /etc/ssh/sshd_config to put this option:
PermitUserEnvironment yes
I do the same on mercure, even if I think it's useless, but...
I always receive the same error and I can't get the 2 folders synchronzed.
Before my hard drive crashed a week ago, I had unison running by cron and it was working nice, but now I'm unable to do it again...
Does anyone has a clue about what's happening and how to solve it?
Last edited by jcerdan (2008-07-04 09:52:00)I have tried adding source to the crontab but I got the same error.
This is the env output from cron:
CONSOLE=/dev/console
SHELL=/bin/sh
CMDLINE=root=/dev/disk/by-uuid/25d2ee78-61ac-4b43-929a-28180b156786 ro
TERM=linux
rootdelay=0
USER=jordi
INIT_VERSION=sysvinit-2.86
ro=y
PATH=/bin:/usr/bin:/sbin:/usr/sbin
_=/usr/bin/env
RUNLEVEL=3
PWD=/home/jordi
PREVLEVEL=N
root=/dev/disk/by-uuid/25d2ee78-61ac-4b43-929a-28180b156786
SHLVL=3
HOME=/home/jordi
kinit_params= rootfstype=ext3 rootdelay=0
And this is the env output from the terminal:
[jordi@mercure ~]$ env
XDG_DATA_HOME=/home/jordi/.local/share
SHELL=/bin/bash
TERM=xterm
DESKTOP_STARTUP_ID=
HISTSIZE=1000
QT_XFT=true
GTK_RC_FILES=/etc/gtk/gtkrc:/home/jordi/.gtkrc-1.2-gnome2
WINDOWID=54526543
QTDIR=/opt/qt
GTK_MODULES=gnomebreakpad
USER=jordi
GNOME_KEYRING_SOCKET=/tmp/keyring-C1rLTl/socket
SSH_AUTH_SOCK=/tmp/keyring-C1rLTl/ssh
KDEDIR=/opt/kde
OOO_FORCE_DESKTOP=gnome
SESSION_MANAGER=local/mercure:/tmp/.ICE-unix/3449
USERNAME=jordi
MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins:/opt/mozilla/lib/plugins
XDG_CONFIG_DIRS=/etc/xdg:/opt/kde/etc/xdg
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/opt/java/jre/bin:/opt/kde/bin:/usr/bin/perlbin/site:/usr/bin/perlbin/vendor:/usr/bin/perlbin/core:/opt/qt/bin
DESKTOP_SESSION=gnome
GDM_XSERVER_LOCATION=local
INPUTRC=/etc/inputrc
PWD=/home/jordi
JAVA_HOME=/opt/java/jre
LIBXCB_ALLOW_SLOPPY_LOCK=true
EDITOR=vi
LANG=es_ES.utf8
GNOME_KEYRING_PID=3448
GDM_LANG=es_ES.utf8
KDEDIRS=/opt/kde:/usr
PS1=[\u@\h \W]\$
PS3=>
GDMSESSION=gnome
PS2=>
HISTCONTROL=erasedups
SHLVL=1
HOME=/home/jordi
PS4=+
XDG_CONFIG_HOME=/home/jordi/.config
GNOME_DESKTOP_SESSION_ID=Default
XDG_CACHE_HOME=/home/jordi/.cache
LOGNAME=jordi
LESS=-R
CLASSPATH=:/opt/java/jre/lib
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-5ncgDqnWoO,guid=1e082c45cdb24be2d415016e486c820b
XDG_DATA_DIRS=/usr/share:/usr/local/share:/usr/local/share/:/usr/share/:/usr/share/gdm/:/opt/kde/share
PKG_CONFIG_PATH=:/opt/kde/lib/pkgconfig:/opt/qt/lib/pkgconfig
WINDOWPATH=7
DISPLAY=:0.0
J2REDIR=/opt/java/jre
G_BROKEN_FILENAMES=yes
COLORTERM=gnome-terminal
XAUTHORITY=/home/jordi/.Xauthority
_=/usr/bin/env
A lot of vars are different, but they refer to the Gnome environment. I can see that SHELL, TERM are different, but I don't know what can make the difference.
Do you think there's a problem there? -
Problem with upgrade due to no connection to audit database
Hello everyone!
Today after work I wanted to finally upgrade ZCM but run into some problems.
We have three servers: Two primary servers and one database-server (OEM Sybase SQL Anywhere). All three are running on SLES 11.
I want to upgrade our ZCM11.2.4MU1 to ZCM11.3a and then to 11.3.1.
I started by upgrading the Sybase database and running dbunload according to the documentation.
Then I continued with "sh install.sh -c" and chose "Audit Database". I selected the OEM Sybase SQL Anywhere with port 2639.
Admin, password and database-name were unique. But I made the mistake to set the servername to the same as the zenworks-database. *sigh*
The installation completed.
The sybase-asa and sybase-audit-asa services couldn't run at the same time, therefore I rebooted the database-server and installed the audit database again with a unique database-name.
Before the upgrade I could start dbisql and connect without problems to backup the database. Now I cannot connect anymore without using the additional parameter: links=tcpip{host=IPorDNSName,port=2638}
Connecting to the Audit Database via dbisql is not possible, with the following message:
Code:
Could not connect to the database.
Database server not found
Ensure that the name in the "Server name" field is spelled correctly, that the network options on the network tab are correct and that the database server has been started.
[Sybase][ODBC Driver][SQL Anywhere]Database server not found
SQLCODE=-100
SQLSTATE=08001
Connection parameters:
User=zenauditadmin
Password=***
Server=zenworks_audit_database_server
DBN=zenworks_audit_database2
LINKS=ShMem
ENC=NONE
links=tcpip{host=<ip>,port=2639}
With that said, it is not possible to upgrade the first primary server because the setup routine is also not possible to connect to the Audit Server:
Code:
We were unable to create a connection to the database. Please check your
connection information.
Specify the existing ZENworks database and database authentication information
for an existing user with sufficient permissions.
The services sybase-asa and sybase-audit-asa are both running. I also restarted them a couple of times.
zenworks_database.conf and zenworks_database_audit.conf look fine.
Do you have any idea what I missed?
Is the duplicate servername still somewhere existend and prevents the proper running?
Thank you very much in advance for pointing me in any direction!novellchuck wrote:
>
> Hello everyone!
>
> Today after work I wanted to finally upgrade ZCM but run into some
> problems.
>
> We have three servers: Two primary servers and one database-server
> (OEM Sybase SQL Anywhere). All three are running on SLES 11.
> I want to upgrade our ZCM11.2.4MU1 to ZCM11.3a and then to 11.3.1.
>
> I started by upgrading the Sybase database and running dbunload
> according to the documentation.
> Then I continued with "sh install.sh -c" and chose "Audit Database". I
> selected the OEM Sybase SQL Anywhere with port 2639.
>
> Admin, password and database-name were unique. But I made the mistake
> to set the servername to the same as the zenworks-database. sigh
> The installation completed.
> The sybase-asa and sybase-audit-asa services couldn't run at the same
> time, therefore I rebooted the database-server and installed the audit
> database again with a unique database-name.
>
> Before the upgrade I could start dbisql and connect without problems
> to backup the database. Now I cannot connect anymore without using the
> additional parameter: links=tcpip{host=IPorDNSName,port=2638}
>
> Connecting to the Audit Database via dbisql is not possible, with the
> following message:
>
>
> Code:
> --------------------
> Could not connect to the database.
> Database server not found
>
> Ensure that the name in the "Server name" field is spelled
> correctly, that the network options on the network tab are correct
> and that the database server has been started. [Sybase][ODBC
> Driver][SQL Anywhere]Database server not found SQLCODE=-100
> SQLSTATE=08001
> Connection parameters:
> User=zenauditadmin
> Password=***
> Server=zenworks_audit_database_server
> DBN=zenworks_audit_database2
> LINKS=ShMem
> ENC=NONE
> links=tcpip{host=<ip>,port=2639}
> --------------------
>
>
> With that said, it is not possible to upgrade the first primary server
> because the setup routine is also not possible to connect to the Audit
> Server:
>
>
> Code:
> --------------------
> We were unable to create a connection to the database. Please
> check your connection information.
>
>
> ************************************************** ********************
> ******** Specify the existing ZENworks database and database
> authentication information for an existing user with sufficient
> permissions. --------------------
>
>
> The services sybase-asa and sybase-audit-asa are both running. I also
> restarted them a couple of times.
> zenworks_database.conf and zenworks_database_audit.conf look fine.
>
> Do you have any idea what I missed?
> Is the duplicate servername still somewhere existend and prevents the
> proper running?
>
> Thank you very much in advance for pointing me in any direction!
Oh boy... and no backup?
Not sure how to get the sybase back working again... my first choice in
such a case would be to make a contact to Novell, are you able to
create an SR on this?
Niels
I have always liked... Cowabunga!
If you find this post helpful, please show your appreciation by
clicking on the star below.
A member must be logged in before s/he can assign reputation points. -
Problem with Delivery due list VL10b for STO's - Orders not disappearing
Hi
We have a problem where some 'Stock Transfer orders' are not disappearing from the delivery due list VL10b
Collective processing of documents due for delivery - Purchase orders
hence we have had two deliveries created for one STO order, which in turn has been goods receipted
Any ideas on what the cause of this problem could be ?
The quantities have not been changed on the STO
Please help
Thanks
TonyHi
Checked OVLP item category NLN standard stock Trans item IS relevant for picking
Over delivery Option is blank currently - what will happen if i change to B ?
Thanks
Tony
Edited by: Tony Lannon on Aug 5, 2009 3:33 PM
Edited by: Tony Lannon on Aug 5, 2009 3:34 PM -
Problem with bapi_po_create1 missing payment terms
Hi All,
I am using LSMW and BAPI method to create PO. I am using BAPI_PO_CREATE1 and providing the payment terms in my load file. The PO is created succesfully but the PO doesnt have the payment terms. I have the update value X. Is there anyway to fix the problem.
ThanksHi
Try to check if there's an user-exit where the payment terms is changed or cleared.
Max -
Problem with VF04 due to shipping point
Hi,
I have created a order in which, the shipping point was determined automatically. & this order perfectle appeared in my billing due list(VF04). for some reason, deleted the shipping point & re- enterd the same. Now my order does not appear in the billing due list.
Have any one of you comew across such cases?Hi,
Seems to be an order related billing, check in VF04, whether you have checked the order realted billing option?
Prase -
Problems with cron pattern in schedule editor
hi
I have a transaction that should be executed every 7 seconds. To do this I created a new entry in the schedule editor. Because of the tool to build the cron pattern showed every minute as the most often possible, I looked at the help of xMII.
There is said, that a pattern of */5 * * * * * would execute every 5 seconds. I changed to */7 * * * * * and saved. The result is, that it is executed every 7 minutes. That is also what I see in the scheduler. Even the pattern * * * * * * that should execute every second according to the help does not what is documented. It executes every minute.
So the question is, is it possible to execute a transaction every X seconds?
And the second question, is this a bug in the scheduler or ist the information provided in help wrong?
Thank you for help.
Kind regards,
Timo BachertOK, thank you. Then the help of xMII 12 says wrong (either in german as in english)
Timo -
Problem with version enabling tables with ric.
Hello,
i have the a problem when i want to version enable tables having ref. int. constraits having delete rule cascade or set null.
Is it possible that i can't version enable the tables because of these constraints? How i could solve this problem if i want to keep the delete rule?
thanks,
Orsi GyulaiHi,
We are internally creating a <table_name>_g procedure that transfers privileges to the necessary users. If you have a table with that name, it would explain the error.
When using ignore_last_error, it will skip the statement that is selected from the all_wm_vt_errors view. Sometimes, the statement can be safely skipped, while in other cases it cannot be. This procedure will always eventually complete when it is repeatedly called with ignore_last_error set to true. However in doing so, some required objects or privileges may not exist or be in an invalid state.
In your case, you most likely had to skip the 3 or so statements that dealt with the <table_name>_g procedure. Typically, these statements should not be skipped, but you may or may not see a problem with it due to a number of factors.
The best course of action may be to drop the trigger in a beginDDL/commitDDL session, and then recreate it in a separate session. Of course, only do this after renaming the <table_name>_g table that you have. Unfortunately, there is currently no way of getting around this naming convention.
Thanks,
Ben -
I am experiencing on going problems with my i phone 4 due to me sharing an i tunes account with my daughter. I have been told by apple to cancel my existing (shared) i tunes account and open a new one for my use only. How do I do this? I cant find any links in i tunes to do this. mountfield
No, it's done on the computer, it's just done on the web and not through iTunes. I guess you could do it on the iPhone, but it would be easier to do on the computer.
Just go to the site linked above, then click on the big blue button and fill out the neccessary information. -
Can't install itunes due to a problem with windows installer package
hello there i can't install itunes due to a problem with the windows installer package i found a page on this site (here is the link) http://docs.info.apple.com/article.html?artnum=304405 i done every thing on it and i still haven't been able to fix the problem i have tryed the following unstalling itunes deleteing the registry keys deleteing all the temp files disableing all anit-virus software and anit-spyware. runing cc clearner downloading a new installer for itunes and windows installer and the script thing. and trying to reinstall. nothing seems to work i don't know what else to do this is the error message i get when i try to install i tunes. "there is a problem with this windows installer package.
A program required for thsi install to complete could not be run.
Contact your suupport personnel or package vendor."
Please Help i would be most greatfull for any advise given
Message was edited by: Joe_TLCI pulled my brains out trying to figure this bug out and I may have a solution for you.
All of it installed fine in my desktop, but a friend's laptop got the error you mentioned on quicktime, itunes, flash, officeXP and about anything else I tried to load for him.
If you look in: C:\documents and settings\<username>\Local Settings\Temp there will be an iTunes install log...open it in Notepad and see if it isn't exiting with a 1619 error while running msiexec.exe
If this is the case, this fix should work for you.
Seems some configurations of XP (and possibly Vista) aren't allowing full administrator rights to the account you set up when you installed XP (even though User Editor says you do have those rights.)
I read 2 MS articles and turned off simple file sharing, then gave ownership of the entire C: drive to the administrator. Logged the admin account off, logged his "admin" account in, and then gave rights to his personal directory to his account (c:\docs and settings\<username>)
Once I did that, every install that had previously errored out performed flawlessly.
The MS articles in question:
http://support.microsoft.com/?kbid=316309 (1619 error)
and
http://support.microsoft.com/?kbid=308419 (how to set special permissions)
Hope this helps!
Doc -
When I connect my I pod shuffle to USB it shows an error message - " I Tunes has deducted a problem with your audio configuration. Audio/Video playback may not operate properly" due to this problem whenever i connect earphone each and every earphone gets un usable. Already made a factory reset. please arrange for a rectification.. :'(
Hi Ganeshpandianm,
Welcome to the Support Communities!
The article below may be able to help you with this issue.
Click on the link to see more details and screenshots.
iTunes for Windows: iTunes cannot run because it detects an issue with QuickTime
http://support.apple.com/kb/TS1371?viewlocale=en_US
"iTunes cannot run because it has detected a problem with your audio configuration"
Cheers,
- Judy
Maybe you are looking for
-
Weird Message from Repairing Permissions
Had a new iMac for about a month. For a lark I did a repair permsissions - mainly as a speed test. I got a message that "CoreServices...as been changed. Unable to repair" (Yes, "has" was mispelled) Hovering over the line showed that the file in quest
-
Can i add a 3rd and 4th monitor to an HP Slimline 5000 series using USB to VGA adaptors? This PC cannot be expanded.
-
Subscriptions are recurring by default
Dear Sir/Madam, I have subscribed the Unlimited World 1 month item since 25 Mar, However, I do not aware the subscription would allow auto re-charge / auto subscribe of the next month item. On 22Apr, I do not aware it has been auto subscribed and cha
-
If I use the Apple Migration Assistant to transfer my data from my old Mac to a new mac, will it copy my VMware Fusion app and the virtual machines I have created on the old Mac?
-
Cinema Tools scales down my clip
Summary of the issue I am putting a 1920x1080p 60fps clip into Cinema Tools to change the frame rate to 24fps using the simple "conform" function. The fps conversion is successful, but the clip is now 960x540. I have seen this situation reported on t