08-07-2019
Screen Output Needed on every execution
Hi ,
A shell script being executed by multiple user in a host, but i need the output of each user who executed the script
user should have screen output as well ...and unique log file name should generated on execution of script
is there anyway to get it
below file will overwrite on each execution, but i need to have a different unique log file generated on each execution
like
sh test.sh | tee Dev1.log
Last edited by jim mcnamara; 08-07-2019 at 04:47 PM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need to put the following in a script:
echo $CCPDB will give me the db name on the screen. I need to use this name to tar cvfEh <newtarname> <dbname.exp>. I am not sure how to use the output that display on the screen in a script. I tried this
echo $CCPDB > file didn't work
Gundu (1 Reply)
Discussion started by: gundu
1 Replies
2. Shell Programming and Scripting
Is there a way to turn off standard output while processing is going on? I have tried redirecting to /dev/null but that is not working because some of the commands invoke a profile. I would like to temporarily turn off the screen output until the processing is complete. Sort of like a splash... (3 Replies)
Discussion started by: bestbuyernc
3 Replies
3. UNIX for Dummies Questions & Answers
I'm a newbie.
I'm having a problem at work with a script. What i'm trying to do is connect to a cisco switch from a sun station. After i run the script and telnet into the switch i don't get any output on the "xterm window" and all my commands from the script don't show up on the screen or on... (0 Replies)
Discussion started by: wisher115
0 Replies
4. UNIX for Dummies Questions & Answers
I want to check whether the variable read from the console is number or character , so i used echo $option|grep and checked the reuslt returned by grep cmd using $?
But since I use echo the value is getting printed in the screen , I want to supress the o/p. Can anyone suggest how this can be... (1 Reply)
Discussion started by: rolex.mp
1 Replies
5. UNIX and Linux Applications
One of my Sun Box running SUNOS 4.1.3_U1, the screen saver in turn on. if there anyway to disable the screen saver?
Thanks (0 Replies)
Discussion started by: AirWalker83
0 Replies
6. Shell Programming and Scripting
Is it possible to split the screen and show, lets say a local directory listing on the left and a remote directory listing on the right with shell scripting?
I know it's usually done with curses/ncurses, but I'd really like to keep it simple as possible. I guess 'dialog' command could do it... (1 Reply)
Discussion started by: lochraven
1 Replies
7. Shell Programming and Scripting
Hi guys i have a script (takeconsole) as following
I have moved it to /usr/local/bin to make the execution of script simpler.
below are the content of the file.
When i run the file by typing "takeconsole" .it always ask for entering the IP address but when i run it by using ". takeconsole".... (9 Replies)
Discussion started by: pinga123
9 Replies
8. Shell Programming and Scripting
I m writing a program to execute remote script .
(display remote file content)
Whenever i execute following statement it gives me an error.
$command="cat /root/vm.cfg"
ssh -ttq root@10.180.8.236 $command
However following script work find.
ssh -ttq root@10.180.8.236 cat /root/vm.cfg
... (8 Replies)
Discussion started by: pinga123
8 Replies
9. Shell Programming and Scripting
I m using multiple scripts which are running on one master computer(server) and fetching records from another computers(client).
For example.
Machine A running scripts to execute code on Client machines say Machine B ,Machine C and Machine D
respectively.
Output of the script is then... (2 Replies)
Discussion started by: pinga123
2 Replies
10. Programming
def gob(url):
print "\n\t Running gobuster on target."
params = " -e -s '307,200,204,301,302' -t 20 -u " + url + " >> /tmp/%s/gobuster.txt" % (ip)
os.system("xterm -e bash -c "tail -f /tmp/%/gobuster.txt"")
for i in bflist:
dirbf = "gobuster -w " + i... (3 Replies)
Discussion started by: alvinoo
3 Replies
LEARN ABOUT BSD
rcsfreeze
RCSFREEZE(1L) RCSFREEZE(1L)
NAME
rcsfreeze - freeze a configuration of sources checked in under RCS
SYNOPSIS
rcsfreeze [symbolic revision name]
DESCRIPTION
The rcsfreeze command has the purpose of assigning a symbolic revision number to a set of RCS files, which form a valid configuration.
The idea is to run rcsfreeze each time a new version is checked in. A unique symbolic revision number (C_number, where number is increased
each time rcsfreeze is run) is then assigned to the most recent revision of each RCS file of the main trunk.
If the command is invoked with an argument, then this argument is used as the symbolic name to freeze a configuration. The unique identi-
fier is still generated and is listed in the log file but it will not appear as part of the symbolic revision name in the actual RCS files.
A log message is requested from the user which is saved for future references.
The shell script works only on all RCS files at one time. It is important that all changed files are checked in (there are no precautions
against any error in this respect). Run rcsclean(1L) first and see whether any sources remain in the current directory.
FILES
[RCS/]rcsfreeze.version for the version number
[RCS/]rscfreeze.log for the log messages, most recent log message first.
AUTHOR
Stephan v. Bechtolsheim
SEE ALSO
rcs(1L), rlog(1L), rcsclean(1L)
BUGS
The program does not check whether there are any sources checked out and modified.
Purdue University RCSFREEZE(1L)