- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- shell execution problem
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
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
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
тАО03-25-2011 10:36 PM
тАО03-25-2011 10:36 PM
shell execution problem
That, I use HP-UX ver 10.*
That, daily, I execute one shell present in the "global" folder which is sub-folder of /usr1/usr3, using the following commands.
#cd /usr1/usr3/global
#./ntpatch
Today I did the same but message appears "file not found"
That, I use ll/ls command to get the listing of file(s) in the folder named "global" but it shows ". not found". That folder is sub-folder of /usr1/usr3 folder. but if i use the listing command with full path i.e. "ll /usr1/usr3/global then it shows the list of files present in the "global" folder.
That, In this context I have taken a shutdown and run the fsck command for all the file-system including /usr1, but all is in vain.
In view of the above submission my query is why such strange thing begun to happen. Please help me as it is important shell that i have to execute daily.
thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2011 01:54 AM
тАО03-26-2011 01:54 AM
Re: shell execution problem
Please try to execute the script with sh -x command and if possible please send me script in txt format.
-Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2011 04:37 AM
тАО03-26-2011 04:37 AM
Re: shell execution problem
uname -a
> [...] I use ll/ls command [...]
As usual, it can be more helpful to show
actual commands with their actual output,
rather than vague descriptions or
interpretations. Don't _tell_ me what you
did and what happened, _show_ me.
mount
cd [...]
ls -l [...]
[...]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2011 05:25 AM
тАО03-26-2011 05:25 AM
Re: shell execution problem
What happens when you do: cksum /usr1/usr3/global/*
Can it find, then read the content of those files?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2011 10:22 AM
тАО03-26-2011 10:22 AM
Re: shell execution problem
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2011 10:40 AM
тАО03-26-2011 10:40 AM
Re: shell execution problem
This error message would suggest filesystem corruption. I hope you have good backups.
> I have taken a shutdown and run the fsck command for all the file-system including /usr1, but all is in vain.
Did you run a _full_ fsck?
For vxfs-type filesystems, the default is to run a short filesystem check only. When the operating system detects the filesystem is damaged, it places a damage indicator to the superblock, which causes a full fsck to run automatically. But I guess some types of filesystem corruption might go undetected.
If the filesystem type is vxfs and you aren't 100% certain you already ran a _full_ filesystem check on it, please reboot the system to single-user mode and explicitly run a full filesystem check:
fsck -F vxfs -o full /dev/
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2011 01:32 PM
тАО03-26-2011 01:32 PM
Re: shell execution problem
Any reason you can't unmount it and run fsck(1m) in non-single-user mode?