[torqueusers] sending mails with mail command

Arnau Bria arnaubria at pic.es
Wed Feb 24 11:48:50 MST 2010


On Wed, 24 Feb 2010 12:30:00 -0600
James J [ITACD] Coyle wrote:

> Arnau,
Hi James,
 
>    This is a strange one, but I have seen this problem.
> 
>    Are you an emacs user?
nop.
 
>    If so, issue the command 
> 
> cat -e  scriptname

 $ cat -e mail.sh 
#!/bin/bash$
/bin/mailx -s KAKA arnaubria at pic.es </nfs/pic.es/user/a/arnaubria/kaka.txt$

> to see if you have an end-of-line character for the last line.
> 
>    Sometimes batch schedulers have the "feature" that the last line of
> The job file is not executed if it does not end with and EOL
> character. vi will put one in if you just exit without hitting enter
> after the last line, but emacs does not.
I do use vi, and exit as you say.

 
>    If you don't have an EOL character after the last line,  try
> going  into emacs, go to the end of the last line and hit ENTER so
> you get the EOL inserted and then  try again.
> 
>    I have a qsub wrapper script which looks for this and for
> unprintable characters in the job file also which come from DOS or
> from cut and paste from some websites.
> 
>   The command dos2unix  jobfile will convert files with unprintable
> CTL-M's imbedded in it.
I alredy did a dos2unix because of that.
 

Anyone could do same test as me?

>  - Jim C.
Thanks for yor reply Jim.

Cheers,
Arnau


More information about the torqueusers mailing list