- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Anyone ever seen this?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2000 07:45 AM
09-22-2000 07:45 AM
Anyone ever seen this?
ls -t /tmp/xyz.* | head -1
This worked fine for me, but for the user it returned an "arguement to long" error.
Has anyone ever seen this before? We're on the same box, and are both regular users. When I su - to root it can run the command either (again argument too long errors). If I just su over then it works. Anyone have any thoughts? I'm not looking for a work around (already gave him one) but more for an explaination of why it works for one of us and not another (or at least a direction to start checking). Thanks a lot...
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2000 07:49 AM
09-22-2000 07:49 AM
Re: Anyone ever seen this?
You could get around it with
ls -t /tmp|grep "^xyz."|head -1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2000 07:53 AM
09-22-2000 07:53 AM
Re: Anyone ever seen this?
However, what I'm wondering is why one user works and another doesn't.
Thanks
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2000 07:53 AM
09-22-2000 07:53 AM
Re: Anyone ever seen this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2000 07:53 AM
09-22-2000 07:53 AM
Re: Anyone ever seen this?
ls -t /tmp|grep "^xyz\."|head -1
I forgot about the backslash.
You might also want to ensure that ls writes single column output with 'ls -1t' but it appears to default to this when piped.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2000 08:07 AM
09-22-2000 08:07 AM
Re: Anyone ever seen this?
There are too many files in /tmp, causing the error. root has unlimited space for environment, etc... (Modified by "ulimit"). The user is being limited by the soft or perhaps hard system resource limits. In this respece, the output from ls is too large to fit into the environment.
To fix this, you can set the limits of the user to the hardlimit. see "man ulimit" for more information; or you can delete a whole lot of stuff in temp. If this is not possible, you could try to do something like
> find . -mtime +1|xargs ls -t|head -1
This should cut the amount of data being passed from one command to another.
Hope this helps!
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2000 08:08 AM
09-22-2000 08:08 AM
Re: Anyone ever seen this?
Are different shells involved?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2000 08:14 AM
09-22-2000 08:14 AM