Sponsored Content
Full Discussion: Scripting Syntax
Top Forums Shell Programming and Scripting Scripting Syntax Post 302272056 by soupbone38 on Monday 29th of December 2008 01:48:01 PM
Old 12-29-2008
Is there a way of deleting them on a single line?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

scripting guru's pls help me with scripting on AIX

can someone pls help me with the script for a files coming from one system to a particular directory and i want to write a script to move those files to another directory on different system by renaming the files... pls someone help me on this... thanking in anticipation.... (1 Reply)
Discussion started by: thatiprashant
1 Replies

2. Shell Programming and Scripting

difference between AIX shell scripting and Unix shell scripting.

please give the difference between AIX shell scripting and Unix shell scripting. (2 Replies)
Discussion started by: haroonec
2 Replies

3. Shell Programming and Scripting

basic scripting syntax

In bash scripts please can someone tell me if the below is the correct syntax for comparing integers and strings; for integers - if ;then for strings - if ; then Thanks Calypso (4 Replies)
Discussion started by: Calypso
4 Replies

4. Shell Programming and Scripting

Call Shell scripting from Perl Scripting.

Hi How to call a shell scripting through a Perl scripting? Actually I need some value from Shell scripting and passes in the Perl scripting. So how can i do this? (2 Replies)
Discussion started by: anupdas
2 Replies

5. What is on Your Mind?

Shell scripting vs Perl scripting

Hi all, I would like to start developping some good scripting skills. Do you think it would be best to start with shell scripting or Perl? I already got a fundation, really basics, in perl. but I am wondering what would be best to be good at first. Can you please help me determine which one to... (14 Replies)
Discussion started by: Pouchie1
14 Replies

6. Android

Android Scripting Environment: Shell Scripting and Android

I just upgraded to Android 2.2 from 2.1. The GPS issue that was troublesome in 2.1 seems to have been fixed. Some of web browsing seems faster, but it could just be my connection is better today ;) Flash works in some browsers but not very good and it is too slow for Flash apps designed for... (0 Replies)
Discussion started by: Neo
0 Replies

7. What is on Your Mind?

Shell Scripting vs Perl scripting

Gents, I have been working in a Solaris/Unix environment for about 9 months. I took some linux classses online before getting the job. But, I am not very good at scripting. I want to learn how to script. Do you think that I should start with Shell scripting or Perl? I wanted to continue with... (2 Replies)
Discussion started by: Pouchie1
2 Replies

8. Web Development

Perl scripting or shell scripting?

i am going to study any one of the scripting languages mentioned above(shell 0r perl scripting) . Which is having more scope for a fresher? (1 Reply)
Discussion started by: Anna Hussie
1 Replies

9. Shell Programming and Scripting

Shell scripting syntax

mydate ="$(date)" what is the use of adding double code and parenthesis in the above code .. can i write the same code as mydate= $date (5 Replies)
Discussion started by: lobsang
5 Replies

10. Shell Programming and Scripting

Shell scripting syntax error in if then else

I have one bash shell script to execute table refreshment. At the bottom of script, I have one piece of code to check 'ORA-' error from log file, then send email to DBA or application people. But this piece of code didn't work. I tried different ways and also search online to find where is my... (2 Replies)
Discussion started by: duke0001
2 Replies
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)
All times are GMT -4. The time now is 09:06 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy