Solved

dos2unix through web gives error: Couldn't open output file udiiaqHC

Posted on 2001-07-11
3
394 Views
Last Modified: 2008-02-20
I need to remove dos characters from a text file from my html page.

I wrote the following lines in a perl file cleanup.pl
 and added the line  <!--#exec cmd="./ident.pl" -->  in my html file

$d=`dos2unix results.txt  results.txt`;  //results.txt has permission 777
print "done...........";

This is the output I got:

dos2unix: Couldn't open output file udiiaqHC.
                 Permission denied. done...........

Any idea why this error comes up?
I found that udiiaqHC is a random thing, if I do a page refresh, I get some other string like udpQayIC
0
Comment
Question by:rajasree
  • 2
3 Comments
 

Author Comment

by:rajasree
Comment Utility
typo error above.  
my html file calls cleanup.pl
<!--#exec cmd="./cleanup.pl" -->

cleanup.pl has contents:
$d=`dos2unix results.txt  results.txt`;  //results.txt has permission 777
 print "done...........";
0
 
LVL 17

Accepted Solution

by:
dorward earned 50 total points
Comment Utility
It looks like it is trying to create a tempory file, possible in the same directory, possibly elsewhere. Make sure the webserver has permission to write to that directory.
0
 

Author Comment

by:rajasree
Comment Utility
Cool!
It worked when I changed the directories permissions.

Thanks for your help,
Cheers!
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Uploading files to the web server has become common part of almost any kind of web application. People use different technologies to solve this, but regardless of the technology used, it is always useful to have some kind of progress indicator shown…
Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now