- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- nohup: ... No such file or directory
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
Discussions
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
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
02-04-2006 05:23 PM
02-04-2006 05:23 PM
nohup: ... No such file or directory
I encountered first time the 'No such file or directory' or 'File not found' !! as shown on below screen images.
-----------------------------------------------
$ls -ltr B*
-rwxrwx--- 1 tbmsbill tbms 462 Dec 20 12:20 BATCHERRORRATE.txt
$
$./BATCHERRORRATE.txt
$nohup BATCHERRORRATE.txt
Sending output to nohup.out
nohup: BATCHERRORRATE.txt: No such file or directory
$
-----------------------------------------------
The file was existing in the folder and I can even access it, but couldn't run, as per error message. I was able to fix it by defining that path to the user profile.
Regards,
Ahmed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2006 07:01 PM
02-04-2006 07:01 PM
Re: nohup: ... No such file or directory
nohup <scriptname> > BATCHERRORRATE.txt
Will work better.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2006 07:08 PM
02-04-2006 07:08 PM
Re: nohup: ... No such file or directory
nohup ./BATCHERRORRATE.txt
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2006 07:13 AM
02-05-2006 07:13 AM
Re: nohup: ... No such file or directory
If you're trying to execute it, it seems like a path issue; nohup can't find the file you're trying to run. Use an absolute path or relative path as Victor noted is what you need to do if the you're in when you execute it is not in your PATH.
If you're trying to use it as the output file, then Steven's example above works:
nohup script_name > output_filename
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2006 02:30 PM
02-05-2006 02:30 PM
Re: nohup: ... No such file or directory
# nohup <scriptname> > logfile.
Example:
# cat script.ksh
hostname
ls -l
# chmod u+x script.ksh
# nohup ./script.ksh > logfile
It will make. Else it will treat your log file as script name as per your syntax.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2006 10:37 PM
02-05-2006 10:37 PM
Re: nohup: ... No such file or directory
for example
#nohup /tmp/script > /tmp/log.out &
The above example will execute the script in background but only output will be redirected to /tmp/log.out
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2006 01:11 AM
02-06-2006 01:11 AM
Re: nohup: ... No such file or directory
I always execute a script immune to hangups as follows without any problems:
$nohup
example:
$nohup ksh test.ksh
The default output is always nohup.out, even you can execute this in background.
example:
$nohup ksh test.ksh&
Hope this helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2017 06:16 AM
06-30-2017 06:16 AM
Re: nohup: ... No such file or directory
Hi Ahmed,
I have also come across the same issue, though the file is at the same directroy, got 'No such file' error. On my case I edited the file through WinScp first. When i faced the issue, I removed the old file, created the file though cp and edited through vi editor. It woked for me.
Regards,
Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2017 05:32 PM
07-02-2017 05:32 PM
Re: nohup: ... No such file or directory
> On my case I edited the file through WinScp first
Yes, evil DOS CRs will mess up the #! interpreter line.