Re: Executing from crontab only does the job when I logged on.

2010-12-28 Thread Ed Ahlsen-Girard
Orestes Leal R. leal () cubacatering ! avianet ! cu, at 2010-12-27
16:40:12, substantially ignored:

So, read the logs, describe your setup more completely such as by
  ^  ^^
including a full dmesg.
^ ^  ^

My experience has been that when the developers ask for a dmesg and I
send it, they tell me more than they were able to before I sent it.

You seem to think that they are kidding when they tell you that they
don't know enough about your setup to answer your question.  They are
not kidding.  And if you will not include a full dmesg, you are wasting
their time **and your time**.
   
This is not the first time that you have failed to provide system
details when asked.  That is why I am being so explicit in my criticism.


-- 

Edward Ahlsen-Girard
Ft Walton Beach, FL



Re: Executing from crontab only does the job when I logged on.

2010-12-28 Thread Orestes Leal R.

ok, thanks, I resolve the issue.


Orestes Leal R. leal () cubacatering ! avianet ! cu, at 2010-12-27
16:40:12, substantially ignored:

So, read the logs, describe your setup more completely such as by
  ^  ^^
including a full dmesg.
^ ^  ^

My experience has been that when the developers ask for a dmesg and I
send it, they tell me more than they were able to before I sent it.

You seem to think that they are kidding when they tell you that they
don't know enough about your setup to answer your question.  They are
not kidding.  And if you will not include a full dmesg, you are wasting
their time **and your time**.
This is not the first time that you have failed to provide system
details when asked.  That is why I am being so explicit in my criticism.





--
Using Opera's revolutionary email client: http://www.opera.com/mail/



Re: Executing from crontab only does the job when I logged on.

2010-12-27 Thread Philip Guenther
On Mon, Dec 27, 2010 at 7:35 AM, Orestes Leal R.
l...@cubacatering.avianet.cu wrote:
 Hi folks, I have setup a 2 crontabs jobs,

 one it's a compiled C program that checks if the pop3 server responds, if so
 it's die,
 if not it restart the pop3 server.

 and the other it's the same but for smtp server.

 the 2 programs work ok, but the do not execute from crontab when I logged
 out from console,ssh.
 but when I logged on into an ssh session or console session then execute.

 it this behavior right?

 I'm using 4.3

4.3 has been out of support for almost 20 months.  You've apparently
chosen to continue using it instead of upgrading, so supporting it is
your problem.  Good luck!  I suggest you check the log file for cron
(read the cron(8) manpage for details).


Philip Guenther



Re: Executing from crontab only does the job when I logged on.

2010-12-27 Thread Orestes Leal R.

It happens to me in 4.8 too.


On Mon, Dec 27, 2010 at 7:35 AM, Orestes Leal R.
l...@cubacatering.avianet.cu wrote:

Hi folks, I have setup a 2 crontabs jobs,

one it's a compiled C program that checks if the pop3 server responds,  
if so

it's die,
if not it restart the pop3 server.

and the other it's the same but for smtp server.

the 2 programs work ok, but the do not execute from crontab when I  
logged

out from console,ssh.
but when I logged on into an ssh session or console session then  
execute.


it this behavior right?

I'm using 4.3


4.3 has been out of support for almost 20 months.  You've apparently
chosen to continue using it instead of upgrading, so supporting it is
your problem.  Good luck!  I suggest you check the log file for cron
(read the cron(8) manpage for details).


Philip Guenther





--
Using Opera's revolutionary email client: http://www.opera.com/mail/



Re: Executing from crontab only does the job when I logged on.

2010-12-27 Thread Philip Guenther
On Mon, Dec 27, 2010 at 9:02 AM, Orestes Leal R.
l...@cubacatering.avianet.cu wrote:
 It happens to me in 4.8 too.

...and yet you seem to have ignored my suggestion to read the cron
log.  Surprise: the same suggestion applies to 4.8!

So, read the logs, describe your setup more completely such as by
including a full dmesg.  Right now, we don't know what architecture
this is, whether virtualization is involved, what user are these
cronjobs set up as, how you confirmed that they are running when
you're logged in, nor how you confirmed that they are *not* running
when you are not logged in.

Without details, I don't see any way to help you other than guessing,
so here's my random guess: it's obviously a bug in your virtualization
setup.  (You didn't say it _isn't_ such a setup, so I could be right.)



Philip Guenther



Re: Executing from crontab only does the job when I logged on.

2010-12-27 Thread Orestes Leal R.

no virtualization, i386, I already read the manpage of cron,
didn't say anithing that apply to this situation.
thanks anyway.


On Mon, Dec 27, 2010 at 9:02 AM, Orestes Leal R.
l...@cubacatering.avianet.cu wrote:

It happens to me in 4.8 too.


...and yet you seem to have ignored my suggestion to read the cron
log.  Surprise: the same suggestion applies to 4.8!

So, read the logs, describe your setup more completely such as by
including a full dmesg.  Right now, we don't know what architecture
this is, whether virtualization is involved, what user are these
cronjobs set up as, how you confirmed that they are running when
you're logged in, nor how you confirmed that they are *not* running
when you are not logged in.

Without details, I don't see any way to help you other than guessing,
so here's my random guess: it's obviously a bug in your virtualization
setup.  (You didn't say it _isn't_ such a setup, so I could be right.)



Philip Guenther





--
Using Opera's revolutionary email client: http://www.opera.com/mail/



Re: Executing from crontab only does the job when I logged on.

2010-12-27 Thread bofh
He said read cron logs, not man page...


-- 
http://www.glumbert.com/media/shift
http://www.youtube.com/watch?v=tGvHNNOLnCk
This officer's men seem to follow him merely out of idle curiosity.  --
Sandhurst officer cadet evaluation.
Securing an environment of Windows platforms from abuse - external or
internal - is akin to trying to install sprinklers in a fireworks factory
where smoking on the job is permitted.  -- Gene Spafford
learn french:  http://www.youtube.com/watch?v=30v_g83VHK4



Re: Executing from crontab only does the job when I logged on.

2010-12-27 Thread Martin Schröder
2010/12/27 Orestes Leal R. l...@cubacatering.avianet.cu:
 the 2 programs work ok, but the do not execute from crontab when I logged
 out from console,ssh.
 but when I logged on into an ssh session or console session then execute.

Programs started by cron will have a different env(1) than those
started from interactive sessions; most notabily $PATH will be
different.

Best
   Martin



Re: Executing from crontab only does the job when I logged on.

2010-12-27 Thread Orestes Leal R.

On Mon, 27 Dec 2010 12:33:25 -0600, Martin Schrvder mar...@oneiros.de
wrote:


2010/12/27 Orestes Leal R. l...@cubacatering.avianet.cu:

the 2 programs work ok, but the do not execute from crontab when I
logged
out from console,ssh.
but when I logged on into an ssh session or console session then
execute.


Programs started by cron will have a different env(1) than those
started from interactive sessions; most notabily $PATH will be
different.

Best
   Martin



Is there any restriction on accesing networks sockets from cron?



Re: Executing from crontab only does the job when I logged on.

2010-12-27 Thread Joachim Schipper
On Mon, Dec 27, 2010 at 01:41:07PM -0600, Orestes Leal R. wrote:
 Martin Schrvder mar...@oneiros.de wrote:
 2010/12/27 Orestes Leal R. l...@cubacatering.avianet.cu:
 the 2 programs work ok, but the do not execute from crontab when I
 logged
 out from console,ssh.
 but when I logged on into an ssh session or console session then
 execute.
 
 Programs started by cron will have a different env(1) than those
 started from interactive sessions; most notabily $PATH will be
 different.
 
 Is there any restriction on accesing networks sockets from cron?

There are no such restrictions that do not also restrict programs
started from the shell by/as the same user.

Joachim

-- 
PotD: databases/pgfouine - PostgreSQL log analyzer
http://www.joachimschipper.nl/



Re: Executing from crontab only does the job when I logged on.

2010-12-27 Thread Eric Furman
On Mon, 27 Dec 2010 13:41 -0600, Orestes Leal R.
l...@cubacatering.avianet.cu wrote:
 On Mon, 27 Dec 2010 12:33:25 -0600, Martin Schrvder mar...@oneiros.de
 wrote:
 
  2010/12/27 Orestes Leal R. l...@cubacatering.avianet.cu:
  the 2 programs work ok, but the do not execute from crontab when I
  logged
  out from console,ssh.
  but when I logged on into an ssh session or console session then
  execute.
 
  Programs started by cron will have a different env(1) than those
  started from interactive sessions; most notabily $PATH will be
  different.
 
  Best
 Martin
 
 
 Is there any restriction on accesing networks sockets from cron?

No, this is not normal behavior for cron on ANY flavor of UNIX.
Sounds like a good guess, Martin, but no one can know because he
still refuses to give any of the info he was asked for.
Any real info at all, actually.



Re: Executing from crontab only does the job when I logged on.

2010-12-27 Thread roberth
On Mon, 27 Dec 2010 20:22:30 -0500
Eric Furman ericfur...@fastmail.net wrote:

 On Mon, 27 Dec 2010 13:41 -0600, Orestes Leal R.
 l...@cubacatering.avianet.cu wrote:
  On Mon, 27 Dec 2010 12:33:25 -0600, Martin Schrvder
  mar...@oneiros.de
  wrote:
  
   2010/12/27 Orestes Leal R. l...@cubacatering.avianet.cu:
   the 2 programs work ok, but the do not execute from crontab when
   I logged
   out from console,ssh.
   but when I logged on into an ssh session or console session then
   execute.
  
   Programs started by cron will have a different env(1) than those
   started from interactive sessions; most notabily $PATH will be
   different.
  
   Best
  Martin
  
  
  Is there any restriction on accesing networks sockets from cron?
 
 No, this is not normal behavior for cron on ANY flavor of UNIX.
 Sounds like a good guess, Martin, but no one can know because he
 still refuses to give any of the info he was asked for.
 Any real info at all, actually.

Expecting any real info whatsoever on misc@ seems to be futile.
A guess is as much as they can or want to expect.
Perhaps it's some kind of recruitment scheme.
(On the other hand, they might just have gone to bed.)