10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
In shellscript, I want to display echo message in console and in the log file. please help me to display this message in two places.
I am using below statment to display messsage, but it is displaying in log file only.
echo "Server Already running" >> serverlog 2>&1 (3 Replies)
Discussion started by: Kri
3 Replies
2. Red Hat
Hi,
I have a simple question : how to disable screen lock and/or sreen saver with command line with RHEL5.4 ? (1 Reply)
Discussion started by: albator1932
1 Replies
3. Shell Programming and Scripting
Hello,
i have a network device that users connect to using ssh. I have a script that connects to the device and has to echo something to other connected people. How can this be established?
ssh user@device 'echo Hello > /dev/console' doesn't seem to do the trick. (2 Replies)
Discussion started by: trafo23
2 Replies
4. Shell Programming and Scripting
Hi folks.
Within a script, i am trying to redirect the output of my commands to both log file and onscreen...
Here is the section, where i write to the logfile. But i'd like to send the "echo "Creating LUN $2$COUNTER..." to screen as well...
Can that be done?
Thanks.
{
subtitle... (2 Replies)
Discussion started by: Stephan
2 Replies
5. Shell Programming and Scripting
So, HostB has a SSH trust via pre-shared keys from HostA.
HostA> ssh HostB hostname
HostB
HostA> ssh HostB echo `hostname`
HostA
HostA> ssh HostB 'echo `hostname`'
`hostname`
HostA> ssh HostB "echo `hostname`"
HostA
HostA> ssh HostB echo $PS1
user@HostA:$PWD
HostA> ssh HostB... (12 Replies)
Discussion started by: Wrathe
12 Replies
6. Shell Programming and Scripting
I have two text files, each of then only containing ONE line and NO carraige return or white space at the end...how do I echo both of these text files to the screen without putting an extra line? I want to do this from the command line.
file1.txt:
this is file1.txt 1
file2.txt:
this is... (4 Replies)
Discussion started by: ajp7701
4 Replies
7. Shell Programming and Scripting
Please help me to simplify my below script.
#!/bin/bash
LOG_FILE=/tmp/log.txt
echo "Hello"
echo "Hello" >> /tmp/log.txt
Is there anyway, that I can echo "Hello" to both screen and file with one single echo command ? (6 Replies)
Discussion started by: phamp008
6 Replies
8. UNIX for Dummies Questions & Answers
Major Newbie here folks. I'm trying to set a variable to my Home directory and then echo it to the screen.
Any and all help is greatly appreciated.
Thanks
Anna (3 Replies)
Discussion started by: amidget
3 Replies
9. UNIX for Dummies Questions & Answers
is it possible to echo 'some text' every 10 minutes on my screen continues ,
without cron. (1 Reply)
Discussion started by: vkandati
1 Replies
10. UNIX for Dummies Questions & Answers
I did a search for this topic but I couldn't find it and I was sure I have seen something similar before (hard because I am not sure of the criteria for the keywords)
What I was looking for was to be able to echo a message to the screen from a bash.sh script at the same time logging it to a... (2 Replies)
Discussion started by: Shakey21
2 Replies