Turning Echo off


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Turning Echo off
# 1  
Old 11-24-2006
Turning Echo off

Hi,

Is there any way like in dos to turn the echo off in a script? i have some lines popping up that i dont wish to be viewed when i am unziping a file it brings up the message updating: log.txt (deflated 72%) and extracting: log.txt i dont want these be viewed.

Andy
# 2  
Old 11-24-2006
You could direct the output from that particular command to /dev/null by adding >/dev/null (or 2>/dev/null, or both) after the zip command in the script. That should shut it up Smilie
# 3  
Old 11-24-2006
In a script -
Code:
# turn on echoing of characters typed
stty echo
# turn off -like for passwords
stty -echo

Jeroenix covered the other possibilities.
# 4  
Old 11-24-2006
oops! A little bit late Smilie

Quote:
Originally Posted by myself
For your case, just redirect o/p to /dev/null (or other file):

unzip whatever.zip > /dev/null 2>&1
# 5  
Old 11-24-2006
Thanks for the help it worked!
Also how would i shut down a command half way through its cycle in a script?

Andy
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Turning given date to epoch

i can probably script this in bash, but, i was wondering, does anyone know of a simple way to translate a given time to epoch? date -d@"29/Oct/2013:17:53:11" the user would specify the date: 29/Oct/2013:17:53:11 and the script will simply interpret that to epoch: 1348838383 (this is just... (4 Replies)
Discussion started by: SkySmart
4 Replies

2. SCO

Need help turning off bootpd

OSR 5.0.7 patched with MP 5 The syslog is flooded with messages: May 9 13:42:12 asiwc bootpd: IP address not found: 192.168.230.215 May 9 13:42:13 asiwc bootpd: IP address not found: 192.168.230.142 May 9 13:42:50 asiwc bootpd: IP address not found: 192.168.230.202 The system... (4 Replies)
Discussion started by: migurus
4 Replies

3. Shell Programming and Scripting

Turning files into an array

I have several files like this file A Good Bad Fair Strawberry 1 4 5 Banana 23 12 4 Plantain 0 0 1 Orange 0 0 0 file B Strawberry 1 1 3 Banana 2 ... (10 Replies)
Discussion started by: littleb
10 Replies

4. UNIX for Advanced & Expert Users

turning CIO on and how to monitor

Hi Guys, I have a database server where we run AIX 5.3 on a power5 box and we just turned on CIO (concurrent I/O) for the database filesystems. Now my assumption is that enabling CIO the database basically will bypass the filesystem cache releasing some extra memory that can be allocated... (1 Reply)
Discussion started by: hariza
1 Replies

5. Solaris

Turning in.ftpd on and off

For two straight days someone was running in.ftpd in my server (apparently looking to break in) and when I would do "top" almost every line would read "in.ftpd". I had a unix sysadmin friend of mine shut it down and then start it back up in a day and a half and all seems OK for now. Here's what I... (1 Reply)
Discussion started by: thomi39
1 Replies

6. AIX

turning auditing on AIX 4.3

Hi, What's the best way to turn on the auditing in AIX 4.3? I'm in an environment where root password are shared with many users. Can sudoers member be audited properly? Thanks (1 Reply)
Discussion started by: itik
1 Replies

7. Gentoo

Turning on/off the network interface

Hi all, I'm trying to write a script that will turn off the network interface eth0 on a linux Gentoo machine and then turn it back on, any help? Thanks, Neked (1 Reply)
Discussion started by: neked
1 Replies

8. UNIX for Advanced & Expert Users

Turning off the CDE

I am running Solaris 9 and wanted the CDE stopped when my users login. Can this be done by adding something to the .profile? Basically when they login they should be at the command line and have to start the CDE themselves. Thanks (11 Replies)
Discussion started by: meyersp
11 Replies

9. UNIX for Dummies Questions & Answers

turning off certain http requests

On a sparc solaris 8 host running sunone webserver 6 I would like to limit the http requests that can be used when port 80 is accessed. We currently have http/1.0 enabled. For example I would like to remove the http request DELETE. Regards, BLP (1 Reply)
Discussion started by: blp001
1 Replies

10. UNIX for Dummies Questions & Answers

Turning off MMDF permanently

This is definitely a post from a "UNIX Newbie" - we have a SCO Unix machine that houses our customer database. I have been getting reports that the system starts lagging intermittently, and have managed to determine that the cause of the slowdown is a process called MMDF. I can manually kill... (4 Replies)
Discussion started by: QmanV2
4 Replies
Login or Register to Ask a Question