The operating system is Solaris. There is a perl interpreter that is located at /opt/perl5.10.0/perl. when i give
ls -ltr /opt/perl5.10.0/perl
I get an error message saying that "/opt/perl5.10.0/perl Not a directory"
At the next instant when i give the same command it lists the properties of the file. For the next 12 minutes or so ls -ltr /opt/perl5.10.0/perl produces no error message. After 12 minutes, the server seems to forget the path /opt/perl5.10.0/perl [i.e when i give ls -ltr /opt/perl5.10.0/perl after 12 minutes it gives an error message Not a directory.]
I have a perl script that is run from autosys. This script makes use of the above perl interpreter. The job fails for the first time and then runs for second time and goes to success for the above mentioned reason. Can someone please help me find out the cause of the problem and shed some light on the solution.
This problem is quite funny and I have not come across this error message for ls command when i googled.
I don't know how autosys is interfaced with the system nor whether or not it calls routine systems about schedule related things.
But i know that i've already met a bug that was making the cron not 100% reliable.
One of you monitoring scheduled script that sould be run every n minutes was running every n minutes, but some randomized times, it was just missing a run (this by forcing the script to generate a log file every run that i located this issue.
That was a solaris 10 bug that got fixed patching with last patch update.
Don't know whether it has something to with you prob but it might be something to check... if you run this OS.
otherwise check environment settings at time you are running your script as well as the availibility of the directory.
Is this dir synchronized with another one ? any NFS or automount stuff in this tree ? no inode table issue ?
truss your failling command and see if you find something in the log
The error message suggests that /opt/perl5.10.0/perl is the current Shell.
If your script starts with a shebang line for perl, any error messages will be attributes to that instance.
We assume that /opt/perl5.10.0/perl is a file not a directory because you describe it as a file.
Assuming that it is a file, you can generate the error message with commands such as "cd /opt/perl5.10.0/perl" .
looks like /opt/perl5.10.0/perl is on mount point which is mounted using autofs
which drops the mount point after certain period of idle time.
when u do ls -lrt /opt/perl5.10.0/perl at that time it does not exist it needs to be mounted first .. so for the first time ls -lrt returns error but that mounts that directory .. so that mount will work for some time ( that time is decided in auto mount )
if you want to make sure ( below commands runs on Linux )
i have faced same issue in which particular directory was not accessible first time you use it after reboot ..
Hi 2 all,
i have had AIX 7.2
:/# /usr/IBMAHS/bin/apachectl -v
Server version: Apache/2.4.12 (Unix)
Server built: May 25 2015 04:58:27
:/#:/# /usr/IBMAHS/bin/apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_worker_module (static)
... (3 Replies)
We are having issues with our Postfix. The POP and IMAP services randomly stops working an sent e-mails return a "Command time limit exceeded".
We've found out that running these command fix the problem:
service cyrus-imapd stop
rm /var/lib/imap/tls_sessions.db*
rm... (2 Replies)
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
I am trying to find lines in a text file larger than 3 Gb that start with a given string. My command looks like this:
$ look "string" "/home/patrick/filename.txt"
However, this gives me the following message:
"look: /home/patrick/filename.txt: File too large"
So, I have two... (14 Replies)
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
6. Forum Support Area for Unregistered Users & Account Problems
Hi all,
I am trying to register but it seems my IP address is being seen or black listed as a spam address.
I get the following message:
"Registration denied. Sorry, The UNIX and Linux Forums runs an active policy of not allowing spammers. Please contact us via by posting in this forum if... (0 Replies)
hi
I'm new here so my question maybe be retarded or out of place:
Is there a way to suppress the "No such file or directory" error message when using the "ls" command ?
thanks (5 Replies)
I am trying to run the script bellow but its given me "syntax error at line 20 :'done' unexpected." error message"
can someone check to see if the script is ok? and correct me pls.
Today is my first day with scripting.
Gurus should pls help out
#!/bin/ksh
# Purpose: Check to see if file... (3 Replies)