Hi Guys, I am trying to to execute the below script in two different machines
Its resulting the below output.
. When I execute the command in host1 its not waiting for input. Any idea friends? Thanks Prem
Moderator's Comments:
Please use CODE tags as required by forum rules!
And, seriously, invest some care to structure the text legibly so people can read and understand it ad hoc!
Last edited by s_premkumar; 07-16-2017 at 10:23 PM..
Reason: Words missing. Line break not required.
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 OSF1
rwho
rwho(1) General Commands Manual rwho(1)NAME
rwho - Shows which users are logged into hosts on the local network.
SYNOPSIS
rwho [-a]
rwho [-a] [users]
OPTIONS
Includes all users. Without this option, users whose sessions are idle an hour or more are not included in the report.
DESCRIPTION
The rwho command displays the username, hostname, and start date and time of each session for everyone on the local network who is cur-
rently logged in to a host running the rwhod daemon.
If one or more user names are specified, only the status of those users whose names are listed appears on the screen. If a user has not
typed anything for at least 3 minutes, rwho reports the idle time as a number of minutes in the last column. After an hour of inactivity,
a user is not included unless the -a option is specified. Because this command displays a lot of output, use this command with caution if
the local network has a large number of users.
Status information is broadcast once every 3 minutes by each network host running the rwhod daemon. Any activity (such as a user logging on
or off) that takes place between broadcasts is not reflected until the next broadcast.
EXAMPLES
To get a report of all users currently logged into hosts on the local network, enter:
$ rwho
bob host2:pts5 Nov 17 06:30 :20 bob host7:console Nov 17 06:25 :25 franz
host1:pts0 Nov 17 11:20 :51 franz host1:pts8 Nov 16 15:33 :42 franz host4:console
Nov 17 16:32 pietro host1:console Nov 17 13:14 :31 pietro host1:pts7 Nov 17 13:15 :47 server
host2:console Nov 17 06:58 :20 luis host2:pts6 Nov 17 09:22
FILES
Indicates data files received from remote rwhod daemons.
SEE ALSO
Commands: ruptime(1), rwhod(8)rwho(1)