Questions tagged [pipe]

156 questions
1
vote
2 answers

FreeBSD Traffic Shaping

I'm trying to do traffic shaping with FreeBSD, here are my rules su-3.2# ipfw show | grep pipe 08380 1514852 125523804 pipe 1 tcp from any to any dst-port 80 su-3.2# ipfw pipe 1 show 00001: 2.000 Mbit/s 0 ms 50 sl. 1 queues (1 buckets)…
alexus
  • 12,342
  • 27
  • 115
  • 173
1
vote
1 answer

wget and pipe to tar in the background

I am trying to download a large file which is .tar.gz and (> 2GB) in size. The bash script also does lots of other things, so I want to kick off the download and then continue processing other commands in the bash script. I am using wget and piping…
Justin
  • 5,008
  • 19
  • 58
  • 82
1
vote
2 answers

How to pipe postfix into Codeigniter controller

I currently have postfix piping into a PHP script to process the email via an alias. catchall: |/var/www/vhosts/website/httpdocs/scripts/incoming_mail.php However, I wish to use the DB config etc supplied in my CI project, so I need to provide a…
Jim Wright
  • 113
  • 4
1
vote
1 answer

Postfix pipe mail at user level

I am trying to filter mail at the user level. I have CentOS and Postfix installed. I managed to install a filter on the server and its working great, except, instead of filtering by user, all emails (sent and received) for all users are getting…
Nash
  • 11
  • 1
1
vote
1 answer

Pipe multiple files into one tar gz

I'd like to call mysqldump to create multiple backup files and then archive them in one tar.gz. I am following this tutorial on mysqldump part: http://dev.mensfeld.pl/2013/04/backup-mysql-dump-all-your-mysql-databases-in-separate-files/ (at the end,…
David162795
  • 135
  • 1
  • 9
1
vote
1 answer

pipe rrd to a new directory

I am chrooted and running out of drive space, so I mounted back to the host drive which has plenty of space but cannot seem to redirect the outputted data to my empty drive [root@localhost rra]# ls /mnt/maindrv/ cacti-0.8.8b cacti-0.8.8b.tar.gz …
bro
  • 191
  • 7
1
vote
1 answer

Cat pipe mysql : Stopped. What stopped and how can I fix that?

I imported a large database from remote using a cat + mysql command : cat my_db.sql | mysql --host=external_host --user=my_user --password=some_password my_database And after some time, it returned [1]+ Stopped cat my_db.sql |…
Cyril N.
  • 574
  • 1
  • 9
  • 33
1
vote
5 answers

How to split the output into different files?

I have a input file like foo xxx yyy zzz foo xxx yyy zzz foo xxx yyy zzz foo xxx yyy zzz bar xxx yyy zzz bar xxx yyy zzz foo xxx yyy zzz .. How to split the input file by line, into foo.txt and bar.txt, depending on the existence of foo and…
Ryan
  • 5,341
  • 21
  • 71
  • 87
1
vote
1 answer

Postfix Pipe then forward to original recipient

I may well be on the wrong track here with what I'm trying to do, so I'd appreciate any advice. Is it possible to pipe email to a script (which I have working), and then have Postfix forward it on to its original recipient using transport_maps,…
Tom
  • 13
  • 2
1
vote
2 answers

how to pipe results from LS to CD in ubuntu

I'd like to ls for the latest created directory in a given directory (we create a new folder for each release) and then cd to that directory. I'd like to create an alias for this so I don't have to remember how to get to the latest directory every…
Ramy
  • 117
  • 1
  • 7
1
vote
1 answer

file transfer with ssh pipe; without scp

Scenario: I'm having about hundred odd text files which are compressed as .gz. They need to be transferred to a remote server. I do not want to use scp. Both, linux servers. my requirement/my idea: I want to write and execute a bash script on source…
user492160
  • 139
  • 1
  • 3
  • 11
1
vote
2 answers

nginx - log access and error to pipe and use multilog to log rotate

What I am trying to do: Log rotate nginx access and error log using multilog My approach: Log nginx access and error to a pipe, so I can have another process that runs multilog that reads from that pipe and let multilog to do the log…
shendz
  • 111
  • 1
  • 2
1
vote
1 answer

WATCH command with pipes

Hithere, how do I watch this command: netstat -plan|grep :80|egrep -v "(:8082)|(:8080)|(:8081)"|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -n It errors out when surrounding it with single/double quotes.
w00t
  • 1,134
  • 3
  • 16
  • 35
1
vote
2 answers

Continual tailing and sorting of multiple files on linux?

Is there a way to use pipes or FIFO in combination to continually monitor several (same format) log files whilst sorting on the first field and then being able to effectively do a tail -f on that continual, sorted output? I can do stuff like…
Jon Scobie
  • 11
  • 1
1
vote
1 answer

How to run truss with piped command in Solaris

How to run a truss command with piped output? eg. # truss -leDo /tmp/truss.out tar cvf - dirs/ | gzip -1 > archive.tar.gz I get only the "tar" output in truss, not from gzip!
M_1
  • 363
  • 2
  • 10