OpenQNX :: The QNX Community Portal

May 13, 2008 - 12:41 PM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 53 unlogged users and 2 registered users online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
jargoint
Post subject: Interrupted function call when doing ls -l  PostPosted: Nov 27, 2007 - 11:56 PM
New Member


Joined: Nov 27, 2007
Posts: 6

When I do an ls -l on a directory it is coming back with interrupted function call, but when I redirect the output to a file it works.

Can anyone tell me what causes the interrupted function call to be returned when doing this and if there is a fix for this.
 
 View user's profile Send private message  
Reply with quote Back to top
mario
Post subject: RE: Interrupted function call when doing ls -l  PostPosted: Nov 28, 2007 - 12:22 AM
QNX Master


Joined: Sep 01, 2002
Posts: 2667

something is screw up with the console maybe, terminal setting are bad? Just a guess.

Are other command such as sin working properly or it's just ls?

What if you do ls -l >file and then cat file, does the error shows up when catting the file. I have seen something like that when a 03 (CTRL-C) ended up in a corrupted file name.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
jargoint
Post subject: RE: Interrupted function call when doing ls -l  PostPosted: Nov 28, 2007 - 12:30 AM
New Member


Joined: Nov 27, 2007
Posts: 6

The sin command is working fine, and when I do other commands they are ok.

When I do the ls -l >>file it works fine.
 
 View user's profile Send private message  
Reply with quote Back to top
jargoint
Post subject: RE: Interrupted function call when doing ls -l  PostPosted: Nov 28, 2007 - 12:31 AM
New Member


Joined: Nov 27, 2007
Posts: 6

I meant to say that the ls -l >file works fine.
 
 View user's profile Send private message  
Reply with quote Back to top
mario
Post subject: RE: Interrupted function call when doing ls -l  PostPosted: Nov 28, 2007 - 03:41 AM
QNX Master


Joined: Sep 01, 2002
Posts: 2667

and what about cat file? (after doing ls -l >file)
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
jargoint
Post subject: RE: Interrupted function call when doing ls -l  PostPosted: Nov 28, 2007 - 01:12 PM
New Member


Joined: Nov 27, 2007
Posts: 6

The cat file contains the list of all the files.
 
 View user's profile Send private message  
Reply with quote Back to top
micro
Post subject: RE: Interrupted function call when doing ls -l  PostPosted: Nov 28, 2007 - 01:24 PM
Senior Member


Joined: Jul 22, 2004
Posts: 315

Since "ls -l > file | cat file" does not interrupt, try some other commands please.

(same as marios but inline)
ls -l | cat

file `ls`

try "ls -l" in another shell
ksh
esh
bash
...
 
 View user's profile Send private message  
Reply with quote Back to top
maschoen
Post subject: RE: Interrupted function call when doing ls -l  PostPosted: Nov 28, 2007 - 06:55 PM
QNX Master


Joined: Jun 25, 2003
Posts: 974

The implication is that some text, probably a screwed up file name, is causing the interrupted call.
By viewing the output of "ls -l >file" in an editor, it might be obvious what the problem is.
 
 View user's profile Send private message Send e-mail Visit poster's website  
Reply with quote Back to top
bvnbhati
Post subject: RE: Interrupted function call when doing ls -l  PostPosted: Mar 07, 2008 - 08:07 AM
New Member


Joined: Mar 07, 2008
Posts: 6

It has something to do with number of files. Whenever I go to long listed files ls gives same type of response in my system and when the list is limited I dont get any such message.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.