Hi, I have a script written on linux m/c, Actually I wanted to print a HTML page in "/usr/anil/scripts/myhtml.html". With the below code the html file is not created "myhtml.html".
#!/usr/bin/perl
print "content-type: text/html \n\n"; #The header
sysopen (HTML, '/usr/anil/scripts/myhtml.html', O_RDWR|O_EXCL|O_CREAT, 0755);
printf HTML "<html>\n";
printf HTML "<head>\n";
printf HTML "<title>My Home Page</title>";
printf HTML "</head>\n";
printf HTML "<body>\n";
printf HTML "
Here we have an HTML
page with a paragraph.
";
printf HTML "</body>\n";
printf HTML "</html>\n";
close (HTML);