10-11-2007
Quote:
Originally Posted by
matrixmadhan
Does that mean if stdin is redirected to read from a file....
Should do.
If that fails you can always do the stdin redirection in a wrapper script.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
Using nohup it sends output automatically to $HOME/nohup.out - how do I direct this output to another named file instead, so I can run several scripts in the background at once, directing their outputs into individual log files?
Cheers (3 Replies)
Discussion started by: miwinter
3 Replies
2. UNIX for Advanced & Expert Users
Hi
I submitted a long running executable without using nohup. Now, is there any way I can assure to keep that process ON even if my session gets killed?
Thanks
Bobby (3 Replies)
Discussion started by: bobbyjohnz
3 Replies
3. Solaris
Hello All,
Here is a problem of NOHUP.
I am trying to run a process which needs to be up and running even if the session is closed. I tried running it with "nohup", but starngely it is not working, when i exit from the session the process is also getting killed?
plz help me in finding out... (4 Replies)
Discussion started by: shivamasam
4 Replies
4. AIX
I have a program which writes to nohup.out ...
over the time this nohup.out becomes a large file and i cannot read the contents of this file using a vi editor.... whe i do a vi nohup.out it gives an error insufficient memory....
do i need to clean this nohup.out periodically ( or compress it... (5 Replies)
Discussion started by: ramky79
5 Replies
5. Shell Programming and Scripting
Hello
I am running this script inst.sh
#!/bin/ksh
sqlplus -s username/password @temp.sql
----Here is my temp.sql
set serveroutput on
select instance_name from V$instance;
exit
When i run the script inst.sh on the command prompt...it runs fine...but
when i run it using... (5 Replies)
Discussion started by: njafri
5 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I've read the man page on nohup.
But I still can't see what's the differences if
we just send a process to background versus
sending a nohup process to background.
eg:
myprocess &
vs
nohup myprocess &
Without nohup, myprocess would still run uninterruptible
at background... (2 Replies)
Discussion started by: ehchn1
2 Replies
7. UNIX for Dummies Questions & Answers
Hi,
We are trying to run a shell script using nohup command. But this scripts asks for user input (username and password). Once we enter credentials it should continue run in background.
Can someone please suggest how can we implement this? we can't modify .sh file since they are provided by... (5 Replies)
Discussion started by: blak
5 Replies
8. UNIX for Dummies Questions & Answers
Hi Every one , i wrote a script for nohpu ,which checks the service by using the port number and starts if it doesnt hear the port. It works good untill i colse the session. how to make it work even after closing the session .And aslo how to deamoize this script
#!/bin/bash
netstat -ptlen |... (2 Replies)
Discussion started by: vikatakavi
2 Replies
9. Shell Programming and Scripting
Shell : bash
OS : Oracle Linux 6.4
I want to save the ouput of a nohup command to file other than nohup.out . Below are my 3 attempts.
For both Attempt1 and Attempt2 , the redirection logs the output correctly to the output file. But I get the error "ignoring input and redirecting stderr to... (7 Replies)
Discussion started by: kraljic
7 Replies
10. Shell Programming and Scripting
I have a script test1.ksh (Korn shell) and within that I am calling another script test2.ksh
test2.ksh runs for a pretty long time and hence wanted to execute as nohup from within test1.ksh
nohup ./test2.ksh
Question 1) dont think the above is working , although executing the nohup... (1 Reply)
Discussion started by: alldbest
1 Replies
LEARN ABOUT LINUX
git-hash-object
GIT-HASH-OBJECT(1) Git Manual GIT-HASH-OBJECT(1)
NAME
git-hash-object - Compute object ID and optionally creates a blob from a file
SYNOPSIS
git hash-object [-t <type>] [-w] [--path=<file>|--no-filters] [--stdin] [--] <file>...
git hash-object [-t <type>] [-w] --stdin-paths [--no-filters] < <list-of-paths>
DESCRIPTION
Computes the object ID value for an object with specified type with the contents of the named file (which can be outside of the work tree),
and optionally writes the resulting object into the object database. Reports its object ID to its standard output. This is used by git
cvsimport to update the index without modifying files in the work tree. When <type> is not specified, it defaults to "blob".
OPTIONS
-t <type>
Specify the type (default: "blob").
-w
Actually write the object into the object database.
--stdin
Read the object from standard input instead of from a file.
--stdin-paths
Read file names from stdin instead of from the command-line.
--path
Hash object as it were located at the given path. The location of file does not directly influence on the hash value, but path is used
to determine what Git filters should be applied to the object before it can be placed to the object database, and, as result of
applying filters, the actual blob put into the object database may differ from the given file. This option is mainly useful for hashing
temporary files located outside of the working directory or files read from stdin.
--no-filters
Hash the contents as is, ignoring any input filter that would have been chosen by the attributes mechanism, including the end-of-line
conversion. If the file is read from standard input then this is always implied, unless the --path option is given.
GIT
Part of the git(1) suite
Git 1.8.5.3 01/14/2014 GIT-HASH-OBJECT(1)