linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Crontab Strange Problem
@ 2002-09-20  0:31 RCS
  2002-09-20  2:45 ` Glynn Clements
  0 siblings, 1 reply; 8+ messages in thread
From: RCS @ 2002-09-20  0:31 UTC (permalink / raw)
  To: linux-admin

I had a program that was schedule in crontab. 
Suddenly after some days it started to show the following error: 

Segmentation Fault 

The problem is that if I run the some command that is in crontab myself (not 
automatically) it works in the way it should, without printing the error. 

Any suggestions???? 

_________________________________________________________
Oi! Você quer um iG-mail gratuito?
Então clique aqui: http://registro.ig.com.br/


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Crontab Strange Problem
  2002-09-20  0:31 RCS
@ 2002-09-20  2:45 ` Glynn Clements
  0 siblings, 0 replies; 8+ messages in thread
From: Glynn Clements @ 2002-09-20  2:45 UTC (permalink / raw)
  To: RCS; +Cc: linux-admin


RCS wrote:

> I had a program that was schedule in crontab. 
> Suddenly after some days it started to show the following error: 
> 
> Segmentation Fault 
> 
> The problem is that if I run the some command that is in crontab myself (not 
> automatically) it works in the way it should, without printing the error. 
> 
> Any suggestions???? 

Process environment. I.e. environment variables, current directory,
standard input/output/error descriptors, resource limits etc. All of
these will differ when running a program via cron compared to running
it from a shell.

-- 
Glynn Clements <glynn.clements@virgin.net>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Crontab Strange Problem
@ 2002-09-20 10:49 RCS
  0 siblings, 0 replies; 8+ messages in thread
From: RCS @ 2002-09-20 10:49 UTC (permalink / raw)
  To: linux-admin

It generates a core file, but I don't know how to use it. 
The user is the same and he is "root", so no permission 
can stop him from execute the program. 

>does it do core dump? if so it is a good start point feed it to gdb 
>could it be permissions related issue..? 
>is the same user running the cron job & when you ran it yourself? 
> 
>^&-----Original Message----- 
>^&From: linux-admin-owner@vger.kernel.org 
>^&[mailto:linux-admin-owner@vger.kernel.org]On Behalf Of RCS 
>^&Sent: Thursday, September 19, 2002 8:31 PM 
>^&To: linux-admin@vger.kernel.org 
>^&Subject: Crontab Strange Problem 
>^& 
>^& 
>^&I had a program that was schedule in crontab. 
>^&Suddenly after some days it started to show the following error: 
>^& 
>^&Segmentation Fault 
>^& 
>^&The problem is that if I run the some command that is in crontab 
>^&myself (not 
>^&automatically) it works in the way it should, without printing the error. 
>^& 
>^&Any suggestions???? 
>^& 
>^&_________________________________________________________ 
>^&Oi! Você quer um iG-mail gratuito? 
>^&Então clique aqui: http://registro.ig.com.br/ 
>^& 
>^&- 
>^&To unsubscribe from this list: send the line "unsubscribe linux-admin" in 
>^&the body of a message to majordomo@vger.kernel.org 
>^&More majordomo info at http://vger.kernel.org/majordomo-info.html 
> 
>---------- 

_________________________________________________________
Oi! Você quer um iG-mail gratuito?
Então clique aqui: http://registro.ig.com.br/


^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: Crontab Strange Problem
@ 2002-09-20 11:50 Bruce Harvey
  0 siblings, 0 replies; 8+ messages in thread
From: Bruce Harvey @ 2002-09-20 11:50 UTC (permalink / raw)
  To: linux-admin

Something missing in the environment for the cron job?

In any event, what (even though not connected) changed on the system in the
interim?  Anything new installed, uninstalled, reconfigured?

---------------------------------------
Bruce T. Harvey,  Special Projects Developer
bruceh@routescape.com, www.routescape.com
Insight Distribution Systems --- Hunt Valley, MD




-----Original Message-----
From: RCS [mailto:cryptik@ig.com.br]
Sent: Thursday, September 19, 2002 8:31 PM
To: linux-admin@vger.kernel.org
Subject: Crontab Strange Problem


I had a program that was schedule in crontab. 
Suddenly after some days it started to show the following error: 

Segmentation Fault 

The problem is that if I run the some command that is in crontab myself (not

automatically) it works in the way it should, without printing the error. 

Any suggestions???? 

_________________________________________________________
Oi! Você quer um iG-mail gratuito?
Então clique aqui: http://registro.ig.com.br/

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Crontab Strange Problem
@ 2002-09-20 14:25 RCS
  0 siblings, 0 replies; 8+ messages in thread
From: RCS @ 2002-09-20 14:25 UTC (permalink / raw)
  To: linux-admin

I discodered the error on my crontab but I dont know how to solve it. 

The program on the crontab works fine when typed on the unix shell, but when 
it is started by the crontab, the program is cant find a library. 

The user from the crontab and the user that I used to run in unix shell are 
the same. Both root 

Can anyone help me???? 

_________________________________________________________
Oi! Você quer um iG-mail gratuito?
Então clique aqui: http://registro.ig.com.br/


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Crontab Strange Problem
@ 2002-09-20 14:40 Craig Sharp
  0 siblings, 0 replies; 8+ messages in thread
From: Craig Sharp @ 2002-09-20 14:40 UTC (permalink / raw)
  To: cryptik, linux-admin

Root and users do not have any path information when run from cron.  You must be sure to specify your paths in your programs if you want them to run.

Craig

>>> RCS <cryptik@ig.com.br> 09/20/02 10:25AM >>>
I discodered the error on my crontab but I dont know how to solve it. 

The program on the crontab works fine when typed on the unix shell, but when 
it is started by the crontab, the program is cant find a library. 

The user from the crontab and the user that I used to run in unix shell are 
the same. Both root 

Can anyone help me???? 

_________________________________________________________
Oi! VocO quer um iG-mail gratuito?
Entpo clique aqui: http://registro.ig.com.br/ 

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org 
More majordomo info at  http://vger.kernel.org/majordomo-info.html


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Crontab Strange Problem
@ 2002-09-20 14:41 johnjulian1
  0 siblings, 0 replies; 8+ messages in thread
From: johnjulian1 @ 2002-09-20 14:41 UTC (permalink / raw)
  To: RCS, linux-admin

you might try this as your cron command:
su - root -c <yourprogram>


RCS <cryptik@ig.com.br> wrote:

>I discodered the error on my crontab but I dont know how to solve it. 
>
>The program on the crontab works fine when typed on the unix shell, but when 
>it is started by the crontab, the program is cant find a library. 
>
>The user from the crontab and the user that I used to run in unix shell are 
>the same. Both root 
>
>Can anyone help me???? 
>
>_________________________________________________________
>Oi! Você quer um iG-mail gratuito?
>Então clique aqui: http://registro.ig.com.br/
>
>-
>To unsubscribe from this list: send the line "unsubscribe linux-admin" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

__________________________________________________________________
The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: Crontab Strange Problem
@ 2002-09-20 15:53 Bruce Harvey
  0 siblings, 0 replies; 8+ messages in thread
From: Bruce Harvey @ 2002-09-20 15:53 UTC (permalink / raw)
  To: linux-admin

Set your environment variables ... most 'at' jobs inherit the environment of
their starter.  Cron, on the other hand, has no clue of what environment to
run, and running a user's .profile could have disasterous consequences when
run by a 'tty-less' process, so either put the environment in the
program/script that's running, or set it prior to running it (i.e., cron a
script that sets the environment and then runs the program, passing all the
parameters, etc.).

---------------------------------------
Bruce T. Harvey,  Special Projects Developer
bruceh@routescape.com, www.routescape.com
Insight Distribution Systems --- Hunt Valley, MD




-----Original Message-----
From: RCS [mailto:cryptik@ig.com.br]
Sent: Friday, September 20, 2002 10:26 AM
To: linux-admin@vger.kernel.org
Subject: Re: Crontab Strange Problem


I discodered the error on my crontab but I dont know how to solve it. 

The program on the crontab works fine when typed on the unix shell, but when

it is started by the crontab, the program is cant find a library. 

The user from the crontab and the user that I used to run in unix shell are 
the same. Both root 

Can anyone help me???? 

_________________________________________________________
Oi! Você quer um iG-mail gratuito?
Então clique aqui: http://registro.ig.com.br/

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-09-20 15:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-20 14:40 Crontab Strange Problem Craig Sharp
  -- strict thread matches above, loose matches on Subject: below --
2002-09-20 15:53 Bruce Harvey
2002-09-20 14:41 johnjulian1
2002-09-20 14:25 RCS
2002-09-20 11:50 Bruce Harvey
2002-09-20 10:49 RCS
2002-09-20  0:31 RCS
2002-09-20  2:45 ` Glynn Clements

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).