[Perl-unix-users] Syntax checking in crontab

2006-01-04 Thread Arijit Das
Appologies for asking this question in a Perl forum..But I expect lots of UNIX experts here...so am posting this question.     Is there a way I can have the syntax of my crontab file checked in a Solaris System?     Basically, I have a crontab file which looks perfect to me syntactically but I get mails saying that:     Your "crontab" on abhay2        !  unexpected end of line     Here is the content of my crontab file:  abhay2> crontab -l## Added for testing if Syncing happens properly for Regressions testcases with new script00 20 * * *
 /u/regress/INFRA_HOME/perforce/SyncSnapshots.csh -regr -b VCS7_1 -r /u/regress/p4_snapshots/nightly71 -l /u/regress/perforce/Regress/71sync.log ...     04 20 * * * /u/regress/INFRA_HOME/perforce/Regress/syncSnapshots -r 72  ## New Crons for Syncing Causes Files20 20 * * * /u/regress/INFRA_HOME/perforce/SyncSnapshots.csh -regr -b TD -r /u/regress/p4_snapshots/Causes/TD -l /u/regress/perforce/Regress/Causes_TD_sync.log CausesDir/...20 20 * * * /u/regress/INFRA_HOME/perforce/SyncSnapshots.csh -regr -b VCS7_1 -r /u/regress/p4_snapshots/Causes/VCS7_1 -l /u/regress/perf## Added for testing if Syncing happens properly for Regressions testcases with new script     Anybody faced this before...?     Thanks,  Arijit
	
		Yahoo! Photos 
Ring in the New Year with Photo Calendars. Add photos, events, holidays, whatever.___
Perl-Unix-Users mailing list
Perl-Unix-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

RE: [Perl-unix-users] Syntax checking in crontab

2006-01-04 Thread Thomas, Mark - BLS CTR



Just a guess, but... lines in unix text files must all end in a newline. 
If you edited the crontab in Windows, it may have left off the final newline 
unless you specifically hit Enter at the end of the last line. 


  
  
  From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of 
  Arijit DasSent: Wednesday, January 04, 2006 9:39 
  AMTo: activeperl@listserv.activestate.com; 
  perl-unix-users@listserv.activestate.comSubject: [Perl-unix-users] 
  Syntax checking in crontab 
  
  Appologies for asking this question in a Perl forum..But I 
  expect lots of UNIX experts here...so am posting this question.
   
  Is there a way I can have the syntax of my crontab file checked in a 
  Solaris System?
   
  Basically, I have a crontab file which looks perfect to 
  me syntactically but I get mails saying that:
   
  Your "crontab" on abhay2
   
   
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  !
  unexpected end of line
   
  Here is the content of my crontab file:
  abhay2> crontab -l## Added for testing if Syncing happens properly 
  for Regressions testcases with new script00 20 * * * 
  /u/regress/INFRA_HOME/perforce/SyncSnapshots.csh -regr -b VCS7_1 -r 
  /u/regress/p4_snapshots/nightly71 -l /u/regress/perforce/Regress/71sync.log 
  ...
   
  04 20 * * * /u/regress/INFRA_HOME/perforce/Regress/syncSnapshots -r 
  72
  ## New Crons for Syncing Causes Files20 20 * * * 
  /u/regress/INFRA_HOME/perforce/SyncSnapshots.csh -regr -b TD -r 
  /u/regress/p4_snapshots/Causes/TD -l 
  /u/regress/perforce/Regress/Causes_TD_sync.log CausesDir/...20 20 * * * 
  /u/regress/INFRA_HOME/perforce/SyncSnapshots.csh -regr -b VCS7_1 -r 
  /u/regress/p4_snapshots/Causes/VCS7_1 -l /u/regress/perf## Added for testing 
  if Syncing happens properly for Regressions testcases with new 
script
   
  Anybody faced this before...?
   
  Thanks,
  Arijit
  
  
  Yahoo! PhotosRing in the New Year with Photo 
  Calendars. Add photos, events, holidays, 
whatever.
___
Perl-Unix-Users mailing list
Perl-Unix-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

RE: [Perl-unix-users] Syntax checking in crontab

2006-01-04 Thread Humenik, Joe - BLS
Title: Message



No blank lines in a 
crontab file
Joe Humenik [EMAIL PROTECTED] 
    Because e-mail 
can be altered electronically,     the integrity of this communication cannot 
be      guaranteed. 

  
  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of 
  Arijit DasSent: Wednesday, January 04, 2006 9:39 
  AMTo: activeperl@listserv.activestate.com; 
  perl-unix-users@listserv.activestate.comSubject: [Perl-unix-users] 
  Syntax checking in crontab 
  Appologies for asking this question in a Perl forum..But I 
  expect lots of UNIX experts here...so am posting this question.
   
  Is there a way I can have the syntax of my crontab file checked in a 
  Solaris System?
   
  Basically, I have a crontab file which looks perfect to 
  me syntactically but I get mails saying that:
   
  Your "crontab" on abhay2
   
   
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  !
  unexpected end of line
   
  Here is the content of my crontab file:
  abhay2> crontab -l## Added for testing if Syncing happens properly 
  for Regressions testcases with new script00 20 * * * 
  /u/regress/INFRA_HOME/perforce/SyncSnapshots.csh -regr -b VCS7_1 -r 
  /u/regress/p4_snapshots/nightly71 -l /u/regress/perforce/Regress/71sync.log 
  ...
   
  04 20 * * * /u/regress/INFRA_HOME/perforce/Regress/syncSnapshots -r 
  72
  ## New Crons for Syncing Causes Files20 20 * * * 
  /u/regress/INFRA_HOME/perforce/SyncSnapshots.csh -regr -b TD -r 
  /u/regress/p4_snapshots/Causes/TD -l 
  /u/regress/perforce/Regress/Causes_TD_sync.log CausesDir/...20 20 * * * 
  /u/regress/INFRA_HOME/perforce/SyncSnapshots.csh -regr -b VCS7_1 -r 
  /u/regress/p4_snapshots/Causes/VCS7_1 -l /u/regress/perf## Added for testing 
  if Syncing happens properly for Regressions testcases with new 
script
   
  Anybody faced this before...?
   
  Thanks,
  Arijit
  
  
  Yahoo! PhotosRing in the New Year with Photo 
  Calendars. Add photos, events, holidays, 
whatever.
___
Perl-Unix-Users mailing list
Perl-Unix-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

[Perl-unix-users] running ssh commands remotely in Perl

2006-01-04 Thread Anthony Ettinger
Any thoughts?

I'm looking for a "best practices".

Basically, i'm on foo.org, and need to automate ssh bar.org, and
executea command or two, then copy the file from that server, then
delete it.

I'd also like to not use 3rd party mods as much as possible.-- Anthony EttingerSignature: http://chovy.dyndns.org/hcard.html
___
Perl-Unix-Users mailing list
Perl-Unix-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs