Solved

.\errorlogs - What is it?

Posted on 2004-08-06
2
287 Views
Last Modified: 2010-04-22
Hi,

I run a program in Linux and I found out that in the same directory, there is some entry as ".\errorlogs"
I try to find out what it is by using ls -alrt .\errorlogs
but I got: no such file or directory

If you know what it is and why such a things comes up inside the directory, please help,

Thanks,

Rfr1tz

0
Comment
Question by:rfr1tz
2 Comments
 
LVL 45

Assisted Solution

by:sunnycoder
sunnycoder earned 50 total points
ID: 11740174
Hi rfr1tz,

sounds like your application is maintaining a log of all the errors that it encountered
just do a
ls -al | grep error
in that directory to see the file/directory name and try to access it again

Sunnycoder
0
 
LVL 23

Accepted Solution

by:
brettmjohnson earned 200 total points
ID: 11741348
> I run a program in Linux and I found out that in the same directory, there is some entry as ".\errorlogs"
> I try to find out what it is by using ls -alrt .\errorlogs
> but I got: no such file or directory

It sounds like this program was originally written for MS-DOS (or Windows).
and sloppily ported to Linux.
The MS-DOS pathname separator is backslash (\) whereas the Unix pathname
separator is forward slash (/).  (The Microsoft engineer who chose backslash says
it is the biggest regret of his career.) The code is attempting to create a file called
"errorlogs" in the current directory.  However the backslash is not interpreted as
a pathname delimiter on Linux, so it is creating a file called ".\errorlog".

Now, the Unix shell interprets backslash as a "quote-next-character", so when
you say 'ls .\errorlogs", it thinks you are quoting the 'e' (which didn't really need
quoting, but you're the boss) so it gives you an error when it doesn't see ".errorlogs".
You can avoid the problem by escaping the backslash with ... another backslash:

ls -alrt  .\\errorlogs
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

948 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

22 Experts available now in Live!

Get 1:1 Help Now