Its resulting the below output.
. When I execute the command in host1 its not waiting for input. Any idea friends?
I can't tell you why it isn't waiting on host1, but i suppose it is simply not there (or not in the path, not flagged executable, ....). I can tell you, though, why your connection to the host is closed afterwards:
Normally, when you start a process B from another process A , A sets up B as its "child process": B will be started, executed and when it ends, its return value will be presented to A for evaluation.
With the command exec this changes: A, in fact, will start B in its own environment (the one of A) and the exit immediately so that B effectively replaces A. Because you replaces your login shell with the little script you wrote (which in turn ended) your connection was simply closed the same way it would have been if you had ended the login shell otherwise (like by pressing "CTRL-D", entering "exit", etc.).
Hi
Here i have a script a
#!/usr/bin/env tclsh
puts "Hello World!"
set filename "./BesRun.sh"
> out.txt
exit
I am trying to redirect the output of the "./BesRun.sh" to out.txt,but it is not happening can anyone let me know (2 Replies)
Hi,
I'm new to ksh - unix platform. I'm writing a small script which will search my current directory and will search for file names which it takes input from the users.
Here is the code I'm having.
1 #!/bin/ksh
2 echo "enter a file name to be searched in the current dir : "
3 read... (1 Reply)
Hi,
I want to write the shell script to change multple file name (the file name is get from DB)
e.g. cp db1.txt file1_new.txt
cp db2.txt file2_new.txt
cp db3.txt file3_new.txt
I have write the script like this:
VAR=`sqlplus -s $LOGON @<<ENDOFTEXT
set termout off
... (0 Replies)
How can I use the exec command to log my korn shell session to the screen and the log file?
Currently I have this command:
$exec 1> ${LOG} 2>&1
This logs the output to the log file only. I want it to go to the screen also. Is this possible with this command?
thanks. (10 Replies)
Hello Experts,
I am on Solaris 10
Due to some limitations in one of the vendor software, I am forced to output the command to exec and then run it from there.
For example..
$(echo "/usr/bin/cp a.dat b.dat") # This works
However,
$(echo "/usr/bin/cat a.dat > c.dat") # This does not... (8 Replies)
Hi can some one explain the following command , It would really help if some can really elloborate on what is happening out here
export PATH | exec /bin/sh ./auto_approve :q
P.S: This is the first time i am using exec ,so an elloboration what does it do and what is the use of the :q will be... (1 Reply)
Hi,
I have the following lines in a script :
.
.
exec < some_file
.
.
.
I have very little idea about exec command. I would like to know what this does and what will happen if the file some_file does not exist. Specifically, I would like to know whether the lines following this... (5 Replies)
Example script:
find mydir -type f -exec echo {}>aaa \; -exec echo {}>bbb \;The two paths go the the bbb file, while there should be one of them on each file. How should I do it to get it working? (2 Replies)
Hello.
From a script, a command for a test is use :
find /home/user_install -maxdepth 1 -type f -newer /tmp/000_skel_file_deb ! -newer /tmp/000_skel_file_end -name '.bashrc' -o -name '.profile' -o -name '.gtkrc-2.0' -o -name '.i18n' -o -name '.inputrc'
Tha command... (3 Replies)
Discussion started by: jcdole
3 Replies
LEARN ABOUT REDHAT
amoverview
AMOVERVIEW(8) System Manager's Manual AMOVERVIEW(8)NAME
amoverview - display file systems processed by Amanda over time
SYNOPSIS
amoverview [[ -config ] config ] [ [-hostwidth width] ] [ [-diskwidth width] ] [ -verbose ]
DESCRIPTION
Amoverview displays a chart showing hosts and file systems processed by Amanda along with the backup level performed each day.
See the amanda(8) man page for more details about Amanda.
OPTIONS
[-config config]
Use configuration config instead of DailySet1.
[-hostwidth width]
Set host field column width to width characters instead of eight.
[-diskwidth width]
Set disk field column width to width characters instead of 20.
-verbose
Amoverview can take a long while on large systems. This option reports intermediate steps while it is working.
EXAMPLE
This shows the /home file system on host2 was backed up at level 3 on the 8th, 9th and 10th of December, had a full backup on the 11th, a
level 1 on the 12th and a level 2 on the 13th.
# amoverview
date 12 12 12 12 12 12
host disk 08 09 10 11 12 13
host1 / 0 1 1 1 1 1
host1 /var 0 1 1 1 1 1
host2 / 1 1 1 1 1 0
host2 /home 3 3 3 0 1 2
host2 /opt 1 1 1 1 1 1
host2 /var 1 1 0 1 1 1
SEE ALSO amadmin(8), amanda(8)AMOVERVIEW(8)