06-22-2009
Difference in commands
Hello All, I have a question about the difference between two commands. I am using Korn and was told by the Unix admin that 'nohup <command> &'
equals 'nohup ./<command> &. That there is no difference betwewen the two. Is this true? Also, does the command './<command> &' provide a disconnect from the SSH session? I was under the impression that only nohup disconnects from the session. TIA.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
shouldn't they give the same output?
echo `echo \`date\``
is the same as the command date
echo `echo date`
prints the word date
thanks! (3 Replies)
Discussion started by: kfad
3 Replies
2. Solaris
Hi,
I would like to know what is the difference between executing the mount command in the following ways...
eg:
/usr/sbin/mount -F <something>
AND
mount -F <something>
I mean , just executing the mount command as opposed to specifying the path and then executing it?
... (3 Replies)
Discussion started by: wrapster
3 Replies
3. Shell Programming and Scripting
Good morning!
What is the difference between:
ssh-keygen -t rsa
and
ssh-keygen -b 2048 -t rsa?
Thanks
Bigben (2 Replies)
Discussion started by: bigben1220
2 Replies
4. Shell Programming and Scripting
HI all,
Please clarify the difference between the following
pm2srv:/var/opt/temip/vf/scripts/saiki#awk '{RS = ":"} ; {print $0}' testf2
hey:wasup:howru:
Yes
I
am
fine
pm2srv:/var/opt/temip/vf/scripts/saiki#awk 'BEGIN { RS = ":" } ; { print $0 }' testf2
hey
wasup
howru
Yes
I... (0 Replies)
Discussion started by: saiki
0 Replies
5. UNIX for Dummies Questions & Answers
Hello! I'm just learning the shell, and I would really like to know how to do this:
Given these 2 commands:
ls -l
ls -le
How can I, with a one-liner, ask the shell to show me visually in the shell, what the difference is between the output of the two commands? They look the same to me... (6 Replies)
Discussion started by: turbofayce
6 Replies
6. Shell Programming and Scripting
Hi,
I need to know the difference between this commands:
grep * *search*
grep "*" *search*
As far as i know does the 2nd command search for files which have a name with *search* and greps then all which have chars from a-z in the file content.
But was does the first command??
Best... (1 Reply)
Discussion started by: xus
1 Replies
7. Solaris
Looking at the performance hit on my server, does it matter wich command I run?
client # rsh server tar –cf - . | tar –cv –f –
or
server # tar –cf – . | rsh client ‘cd target && tar –xv -f –‘
I think it doesn't really matter because both command strings involve a tar being run on... (4 Replies)
Discussion started by: petervg
4 Replies
8. AIX
Hi all,
I'm new in this forum.
I'm looking for the difference between the HACMP commands with the prefix "cl" and "cli".
The first type are under /usr/es/sbin/cluster/sbin directory and the second are under /usr/es/sbin/cluster/cspoc directory.
I know that the first are called HACMP for AIX... (0 Replies)
Discussion started by: peppix
0 Replies
9. Shell Programming and Scripting
Hi all I want to make sure I was understanding this correctly
if a cron job command was
* */20 * * * command
does that mean this command will run every 20 hours?
also what is the difference between the following two?
0,20,40 * * * * command
20 * * * * command
I believe the first... (3 Replies)
Discussion started by: subway69
3 Replies
10. Solaris
i need to know the difference between two commands
ps -ef|grep oracle
ps -ef|grep -v grep |grep oracle (1 Reply)
Discussion started by: smazshah
1 Replies
LEARN ABOUT XFREE86
nohup
NOHUP(1) User Commands NOHUP(1)
NAME
nohup - run a command immune to hangups, with output to a non-tty
SYNOPSIS
nohup COMMAND [ARG]...
nohup OPTION
DESCRIPTION
Run COMMAND, ignoring hangup signals.
--help display this help and exit
--version
output version information and exit
If standard input is a terminal, redirect it from an unreadable file. If standard output is a terminal, append output to 'nohup.out' if
possible, '$HOME/nohup.out' otherwise. If standard error is a terminal, redirect it to standard output. To save output to FILE, use
'nohup COMMAND > FILE'.
NOTE: your shell may have its own version of nohup, which usually supersedes the version described here. Please refer to your shell's doc-
umentation for details about the options it supports.
AUTHOR
Written by Jim Meyering.
REPORTING BUGS
GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
Report nohup translation bugs to <http://translationproject.org/team/>
COPYRIGHT
Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
SEE ALSO
Full documentation at: <http://www.gnu.org/software/coreutils/nohup>
or available locally via: info '(coreutils) nohup invocation'
GNU coreutils 8.28 January 2018 NOHUP(1)