Solved

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

Posted on 2001-07-11
3
400 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
ID: 6275760
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
ID: 6276344
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
ID: 6278122
Cool!
It worked when I changed the directories permissions.

Thanks for your help,
Cheers!
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

822 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