Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2001-07-11
3
Medium Priority
?
411 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 200 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

Linux Academy Android App Now Supports Chromecast

We have some fantastic news for our Android fans. We’re so excited to announce that the Linux Academy Android app is now available with Chromecast support. That’s right – simply download the latest update of the Linux Academy App and start casting your favorite course videos!

Question has a verified solution.

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

FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
CTAs encourage people to do something specific to show interest in your company, product or service. Keep reading to learn why CTAs should always be thought of as extremely important, albeit small, sections of websites.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
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.
Suggested Courses

704 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