- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Find command getting hanged while finding sshd...
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
тАО07-10-2008 10:56 PM
тАО07-10-2008 10:56 PM
Find command getting hanged while finding sshd_config files.
I have one script and in which find is searching sshd_config files on the system.
find / -local -name sshd_config -exec ls -la {} \;
When i run the command, its getting hanged.
I chekcked files are present on the system /opt/ssh/etc/sshd_config ,/opt/ssh/newconfig/opt/ssh/etc/sshd_config, /opt/ssh/src/ssh/sshd_config.
But still why my command is getting hanged???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2008 11:16 PM
тАО07-10-2008 11:16 PM
Re: Find command getting hanged while finding sshd_config files.
What happens if you start from /opt/ssh?
If you expect to find a lot of files, you should change your -exec to:
-exec ll -a {} +
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2008 11:17 PM
тАО07-10-2008 11:17 PM
Re: Find command getting hanged while finding sshd_config files.
The command you issued may be making your system busy by checking all the filesystems and directories under root . Restrict the search to the directory or filesystem where the file resides,And -xdev option also very helpful in such situations if u want to restrict the search to the mount points.
regards
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2008 12:12 AM
тАО07-11-2008 12:12 AM
Re: Find command getting hanged while finding sshd_config files.
so we have to find out why system is getting hanged after this command? why command is not showing outputs though files are present.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2008 01:21 AM
тАО07-11-2008 01:21 AM
Re: Find command getting hanged while finding sshd_config files.
Does that mean you can't improve the script?
>so we have to find out why system is getting hung after this command? why command is not showing outputs though files are present.
You need to prove it is hung. Is it trying to scan some NFS directory?
Does it work if you just start at /opt?
You can also use: find / -local
And see if that hangs.