[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

RE: Perl -system command



The following warning is displayed
Warning: missing newline at end of file <file XYZ>

I am briefing on how file XYZ is created
The script calls  an executable which will create file XYZ
This is compared for difference with an already existing reference file and
the difference is logged to a .err file. The problem is coming at this step.

Even with (` `) same was the case
However system() always gives "Interrupted System Call" error
Please help.


	-----Original Message-----
	From:	Sudhakar Chandra [SMTP:thaths@xxxxxxxxxxxx]
	Sent:	Tuesday, October 10, 2000 11:43 PM
	To:	linux-india-programmers@xxxxxxxxxxxxxxxxxxxxx
	Subject:	Re: [LIP] Perl -system command

	"Sachin Shurpali (RBIN/DCA-NMP)" proclaimed:
	>  $dif=$filedot.".err";
	>     print "\n",$dif,"\n";
	>     $EXEC="diff $current $verif > $dif";
	> 
	> 
	>     if(system($EXEC) != 0 ) -
	> ---------------------------------------------------------error
here
	>     {
	>         print $!;


	Why are you using the system() call?  Why not just use backticks
(`)?

	Thaths
	-- 
	"[muttering] Ow, ow, stupid trash, rotten, stinky, hate world,
revenge
	       soon, take out on everyone..." -- Homer J. Simpson
	Sudhakar C13n    http://www.aunet.org/thaths/    Lead Indentured
Slave

	---------------------------------------------
	The mailing list archives are available at
	http://lists.linux-india.org/cgi-bin/wilma/LIP