Hi,<br>
Sorry Garrick for this stupidity of mine.Actually all the time I was
thinking that I was passing a char[] to fgets and infact it was a
char*.Thanks for help.What I am actually trying to do is:<br>
When the job is submitted and if user has specified in the job file
that an alert should be sent to him regarding an approximated starttime
of the job a mail and a SMS is sent to him. For this I have added <br>an 'x' option to -m (baex).I am using maui's showstart for getting an initial approximation of starttime.<br>
Sorry again for stupid question and bothering for bothering the list .<br>
I thing I want to know if the function 'svr_mailowner' gets executed in
a separate thread or not.I am asking this because I have seen multiple
request being served simultaenously.<br>
<br><div><span class="gmail_quote">On 4/13/07, <b class="gmail_sendername">Garrick Staples</b> <<a href="mailto:garrick@clusterresources.com">garrick@clusterresources.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I think this thread can safely stay on torquedev.<br><br>On Thu, Apr 12, 2007 at 05:29:59PM +0530, rishi pathak alleged:<br>> This is kind of peculiar.<br>> What I am trying is to get open a file in svr_mailowner function in the
<br>> /src/server/svr_mail.c.<br>> The file descriptor returned is valid (it is > 0) but when I try to read<br>> from the file using fgets, the call fails.I tried with fscanf too and this<br>> time call executes normally but there no value in the input
buffer.The file<br>> which I am trying to read is present and has some content.<br>> I copied the code and used it in a simple C program and it works fine with<br>> the same file.<br>> I dont know why this is happening.
<br>> Can someone shed some light on this..<br><br><br>TORQUE doesn't change the rules of C or anything :)<br><br>fgets() returns a NULL on failure and should be setting errno. So what<br>is the errror?<br><br>_______________________________________________
<br>torquedev mailing list<br><a href="mailto:torquedev@supercluster.org">torquedev@supercluster.org</a><br><a href="http://www.supercluster.org/mailman/listinfo/torquedev">http://www.supercluster.org/mailman/listinfo/torquedev
</a><br></blockquote></div><br><br clear="all"><br>-- <br>Regards--<br>Rishi Pathak<br>National PARAM Supercomputing Facility<br>Center for Development of Advanced Computing(C-DAC)<br>Pune University Campus,Ganesh Khind Road
<br>Pune-Maharastra