Unable to execute any comman on a file


 
Thread Tools Search this Thread
Operating Systems Solaris Unable to execute any comman on a file
# 8  
Old 03-13-2012
Hmm filename seems to be missing.
What's the equivalent output from:
Code:
ls -lisa
ls -lisab
ls -lisa|sed -n l

Posted one above the other so we can see if the columns line up.

I suppose you could have a filename consisting of one or more space characters or control codes.
# 9  
Old 03-13-2012
Is it a local directory or NFS mounted?
# 10  
Old 03-14-2012
The filename is SystemOut_12.03.13_15.00.42.log

It's a local directory
# 11  
Old 03-14-2012
What is the output of:
Code:
ls -ld directory
ls -l directory/SystemOut_12.03.13_15.00.42.log

Can you cd to the directory?
# 12  
Old 03-14-2012
Yes i can cd to the directory and manipulate the others file on that directory. Only this file who has problem
# 13  
Old 03-14-2012
In addition to the directory listings requested above, what is the output from:

Code:
fuser SystemOut_12.03.13_15.00.42.log


The directory listings are important if only to prove that the file has the name you think it has. Also it will tell us if the timestamp is changing because something is still writing to the file.
Also, when you get a command which does not work, do you get an error message or is it a problem with what the command did?
# 14  
Old 03-14-2012
You are right. There is a process still writing on this file. But i used to manipulate the file even if it was used by that process.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Unable to execute glance from cronjob

Hi I am writing a script to get the CPU and memory utilization periodically from glance command. Wrote a script which consists of below two lines Script name : Utilization.sh #!/bin/sh glance -iterations 1 | sed -n '/Util/p/'| awk '!/Disk/'| awk '!/Swap/' >> file.txt I am able to run the... (5 Replies)
Discussion started by: Shravani
5 Replies

2. AIX

Unable to execute snap command

Hi Friends, I am not able to execute snap -a command in AIX 6 system. Could you please let me know how to make work this command and Path to be set. Thanks in Advance Siva. (4 Replies)
Discussion started by: sivakumarl
4 Replies

3. Shell Programming and Scripting

Unable to execute Stored Procedure from CRON

Hi, I am very new to this environment - I hope this is the right platform to discuss my issue: I created a CRON job to run a Stored Procedure from our database - Sybase. Within the Stored Procedure there is a TRUNCATE table and CREATE table function. the CRON job fails to run with... (2 Replies)
Discussion started by: pizzazzz
2 Replies

4. Ubuntu

how to upload comman file

Hi, How to upload multiple file using jsp on eclipse,give me a simple example for that. Thanks SN (0 Replies)
Discussion started by: snallusami
0 Replies

5. UNIX for Dummies Questions & Answers

unable to execute while loop

Hi everyone. I wanted to print numbers from 1 to 5 in reverse order. For this I used the following code: #!/bin/bash x=5 while do echo $x x=`expr $x - 1` echo "" done echo "" Well but on compiling the above code, it gives the following error. ... (3 Replies)
Discussion started by: grc
3 Replies

6. AIX

Unable to execute varyonvg during importvg

Hello, On Aix 5.3, during importvg, the varyonvg fails: importvg -y vgtest hdisk20 0516-013 varyonvg: The volume group cannot be varied on because there are no good copies of the descriptor area. When i use manually the command varyonvg -u -b -t vgtest to force, the vg can... (3 Replies)
Discussion started by: dantares
3 Replies

7. UNIX for Advanced & Expert Users

Unable to execute a function using trap

I have a script A which calls script B. I wrote a function in script A to be executed when Kill command is issued for script A and I invoke that function using the trap command.The function identifies all child process running under script A (in this case script B) and kills the child process and... (3 Replies)
Discussion started by: smohandass
3 Replies

8. Shell Programming and Scripting

unable to execute background job

I am unable to execute the below command in background. Plz suggest. #> ./test input >out & 913618 + Stopped (SIGTTIN) ./test input >out & Suresh (1 Reply)
Discussion started by: suresh3566
1 Replies

9. UNIX for Advanced & Expert Users

unable to execute a .SH file

this is (11 Replies)
Discussion started by: angelina
11 Replies

10. UNIX for Dummies Questions & Answers

l comman

hi all when we use the "l" command we get the list of all files & directories available. Files aged less than 6 months, when listed do not display the year. Now my requirement is, i need the time stamp should contain the year for file spooled as of date. Can u suggest me the command. ... (11 Replies)
Discussion started by: raguramtgr
11 Replies
Login or Register to Ask a Question