11-01-2001
You could just rm $file. If so inclined, you could rm -f or rm -rf depending on what stuff you'll be deleting...
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Maybe it's an stupid question but remeber... I'm Junior..
I use command line to run programs, and some of them gives a lot of information when, for example, you open a window or other actions. That's really bad because my terminal gets full of unwanted messages, so I use "bin file & >/dev/null"... (1 Reply)
Discussion started by: piltrafa
1 Replies
2. UNIX for Dummies Questions & Answers
Hi ,
I am importing some table from /dev/null i dont understand what is /dev/null
Sorry i am new to UNIX
sam71 (3 Replies)
Discussion started by: sam71
3 Replies
3. UNIX for Advanced & Expert Users
Hi,
Q1-What does
nroff -ms > /dev/null
Q2- What does mean -A under STAT column :
ps aux |head -20
UTIL PID %CPU %MEM SZ RSS TTY STAT STIME TIME COMMAND
root 516 93,0 0,0 12 12 - A 04 nov 3906:51 wait
Thank you. (4 Replies)
Discussion started by: big123456
4 Replies
4. Solaris
Hi, Anyone can help
My solaris 8 system has the following
/dev/null , /dev/tty and /dev/console
All permission are lrwxrwxrwx
Can this be change to a non-world write ??
any impact ?? (12 Replies)
Discussion started by: civic2005
12 Replies
5. Shell Programming and Scripting
when do you use the path /dev/null (3 Replies)
Discussion started by: webmunkey23
3 Replies
6. UNIX for Dummies Questions & Answers
How are these two different? They both prevent output and error from being displayed. I don't see the use of the "&"
echo "hello" > /dev/null 2>&1
echo "hello" > /dev/null 2>1 (3 Replies)
Discussion started by: glev2005
3 Replies
7. Shell Programming and Scripting
I apologize if this question has been answered else where or is too elementary.
I ran across a KSH script (long unimportant story) that does this:
if ; then
CAS_SRC_LOG="/var/log/cas_src.log 2>&1"
else
CAS_SRC_LOG="/dev/null 2>&1"
fithen does this:
/usr/bin/echo "heartbeat:... (5 Replies)
Discussion started by: jbmorrisonjr
5 Replies
8. Shell Programming and Scripting
Hello All and a Happy New year to yous guys.
I'm running the below command on my AIX box and it keeps giving me the message that the file doesn't exist. I know the file don't exist, but I don't want to see the error. 2>/dev/null doesn't work.
bash-3.00$ ls -l C* | wc -l 2>/dev/null
ls:... (2 Replies)
Discussion started by: bbbngowc
2 Replies
9. UNIX for Dummies Questions & Answers
How can I make /dev/null all the 8640 files that I am getting from this command.
find . \( ! -name . -prune \) -type f -name "EXPORT_v1x0*" | awk -F'_' '$6<20120812'
And then delete everything.
If I am using this command to delete it, I am getting Disk Quota Exceeded Exception.
find .... (4 Replies)
Discussion started by: raihan26
4 Replies
10. Shell Programming and Scripting
Friends have the following problem
a search may not find anything which would correct example:
ls -ltr *prueba.txt | nawk '{ print $9 }' > Procesar.dat 2>/dev/null
When he finds nothing gives me the following error
ls: prueba.txt: No such file or directory
because 2> / dev / null... (4 Replies)
Discussion started by: tricampeon81
4 Replies
LEARN ABOUT DEBIAN
pmailq
PMAILQ(8) PMAILQ(8)
NAME
pmailq - Postfix MAIL Queue manager
SYNOPSIS
pmailq [OPTION]... [COMMAND]
pmailq --help
DESCRIPTION
pmailq parses the output of mailq command from postfix (ie: postqueue -p). It permits to perform some actions on a group of entries in
queue (like removing or displaying them in a machine readable format). They are selected by applying filters (wildcards are allowed) on
criterias like email address, error message from SMTP server, message size, mail status in queue.
COMMANDS
Action to perform on selected entries.
list (default command)
Show a detailed listing of the selected entries.
parse
Show a listing of the selected entries in a machine readable format.
del
Delete (via postsuper -d) the selected entries.
OPTIONS
-e PATTERN, --email=PATTERN
Select entries in queue with email matching PATTERN (PATTERN accepts wildcards).
-m PATTERN, --msg=PATTERN
Select entries in queue with error message matching PATTERN (PATTERN accepts wildcards).
-l SIZE, --size-lower=SIZE
Select entries in queue with size lower than SIZE bytes.
-u SIZE, --size-upper=SIZE
Select entries in queue with size upper than SIZE bytes.
-a
Select 'active' entries in queue.
-o
Select 'on hold' entries in queue.
--version
Show program's version number and exit.
-h, --help
Show this help message and exit.
EXAMPLES
Example 1: display all the entries in queue sent to an email address matching "*@example.com*" with a size between 3000 and 3200 bytes in
a machine readable format:
# pmailq -u 3000 -l 3200 -e "*@example.com" parse
7E75214643A4|Fri Aug 31|3154|1|0|edgar@example.com
B0BDE146B640|Thu Aug 30|3199|1|0|paul@example.com
B587E146B675|Wed Aug 29|3065|0|0|paul@example.com
CF3C514656E4|Wed Aug 29|3161|0|0|abuse@example.com
/ / /
queue id date size on hold (or not)
active (or not)
Example 2: remove all mails in queue not sent because of a connection time out:
# pmailq -m "*connection*timed*out" del
deleting 00CF514616D3 [OK]
deleting 12D911461924 [OK]
deleting 269EF1461CA9 [OK]
deleting 288DF1461CA0 [OK]
deleting 3B3901460F62 [OK]
deleting 3AE58147019F [OK]
SEE ALSO
postsuper(1) privileged queue operations, postqueue(1) mail queue control
AUTHOR
Emmanuel Bouthenot <kolter@openics.org>
COPYRIGHT AND LICENSE
Copyright 2007-2011 by Emmanuel Bouthenot <kolter@openics.org>
This program is released under the "do What The Fuck you want to Public Licence" Version 2, as published by Sam Hocevar.
See http://sam.zoy.org/wtfpl/COPYING for more details.
2011-01-05 PMAILQ(8)