Questions tagged [pipe]
156 questions
1
vote
3 answers
How to get the output of a php script executed by a piped mail?
I've configured an email address to pipe (forward) all emails to /path/to/script.php
I thought I'll receive the output of the script as an email reply but it doesn't work.
How can I get the output of the script and send a reply email with the output…
![](../../users/profiles/101710.webp)
User
- 277
- 1
- 3
- 9
1
vote
1 answer
Why is this apache php piped log script not working properly?
i have a piped logging program like this:
#!/usr/bin/php
![](../../users/profiles/53998.webp)
The Shurrican
- 2,230
- 7
- 39
- 58
1
vote
1 answer
receiving two emails to virtual alias
have a virtual alias setup in /etc/postfix/virtual that reads:
@mydomain.com mydomainincoming
I then have a pipe setup in /etc/aliases that reads:
mydomainincoming: "|/var/path_to_script/myscript.php"
whenever I send mail to more than one user such…
![](../../users/profiles/65627.webp)
Richard Castle
- 113
- 2
1
vote
1 answer
How do I copy stdout and stderr into a log file in Windows XP?
I have a script that I'm running from a command line. I want the stdout and stderr to be displayed on the screen and also to be copied into a logfile with append.
What is the syntax for this piping/redirection?
![](../../users/profiles/50326.webp)
Erick Robertson
- 111
- 5
1
vote
1 answer
sed can't find a file that obviously exists
I run the following command which comments out all lines that contain the text "dlclose"
grep -lIR "dlclose" . | grep -v ".svn" | xargs sed -i "s/.*dlclose.*/\/\/&/g"
However, sed claims that the piped files don't exist:
sed: can't read…
![](../../users/profiles/50914.webp)
user50914
- 121
- 1
- 3
1
vote
1 answer
Comment all lines matching some pattern
I need to comment out all lines containing "dlclose" for each file in the current directory and any sub-directories (recursively). This is my best guess so far given what I was able to find out from various guides.
grep -lIR "dlclose" . | grep -v…
![](../../users/profiles/50914.webp)
user50914
- 121
- 1
- 3
1
vote
3 answers
Scripting (piping) commands into a telnet session
i use a cronjob to execute a filetransfer to a host and then telnet into the host and pipe some commands into it.
HOST=somehost
USER=postgres
PASSWD=blabla
ftp -n -v $HOST <
![](../../users/profiles/7743.webp)
javadude
- 239
- 1
- 6
- 14
1
vote
2 answers
Top like viewer eating tail -f stream
I'm searching for a command line tool working with a stream of lines (tail -f typically) and counting them like :
tail -f /var/log/apache2/access.log | cut -d' ' -f1 | SOME_COMMAND
and displaying a top-like view as :
52 xxx.xxx.xxx.xxx
12…
![](../../users/profiles/46620.webp)
Mandark
- 251
- 1
- 2
- 8
1
vote
1 answer
Exim 4 pipe select command/script from mysql db
Is there an option to run a mysql lookup in the pipe driver of exim?
MYSQL_Q_SCRIPT=SELECT script FROM MYSQL_EMAILTABLE WHERE domain='${quote_mysql:$domain}' AND local_part='${quote_mysql:$local_part}'
command = "${lookup mysql…
![](../../users/profiles/28047.webp)
user28047
- 125
- 1
- 4
1
vote
1 answer
How to make PowerShell read from a pipe?
I need to make PowerShell on Windows Server 2019 to read from a (not named) pipe and launch the commands it reads, so I'll be able to launch multiple commands on the same shell, even without knowing them ahead.
Normal pipe makes it exit (probably on…
![](../../users/profiles/131944.webp)
Didi Kohen
- 121
- 6
1
vote
2 answers
cmd pipe -> System cannot find specified path
Using cmd on Windows 10 Pro 21H2, when I try
echo Hello | find "Bye"
I get The system cannot find the specified path. Same thing if trying
echo Hello | C:\Windows\System32\find.exe "Bye"
So PATH does not appear to be the problem.
I need this…
![](../../users/profiles/327262.webp)
Toni Homedes i Saun
- 153
- 1
- 6
1
vote
1 answer
Is it possible to pipe qemu-img into SSH target?
I tried the following command, but only an empty file is created on the target and the command stays open
qemu-img convert -f raw -O vmdk /dev/sda1 - | ssh foo@bar "cat > /home/foo/foobar.vmdk"
Note: sshfs is not available.
![](../../users/profiles/44086.webp)
mgutt
- 459
- 6
- 22
0
votes
2 answers
re-parenting to screen two processes joined by pipe
Let's say in a PuTTY connection I start
mysqldump --host host1 --databases db1 db2 db3 | mysql
which creates two processes: mysqldump with PID 5800 and mysql with PID 5801. Is it possible to let the running processes continue execution when I want…
user178826
0
votes
1 answer
Command that returns exit code still returning 0 when using "command 2>&1 | tee -a /var/log/file.log"
I'm running a script that executes a command and save the output to a file in /var/log. After that, it gets the exit code and execute another command based on an if/else condition. The problem is: 2>&1 | tee -a /var/log/file.log always returns 0,…
![](../../users/profiles/472073.webp)
Asdra
- 105
- 1
- 3
- 12
0
votes
1 answer
Backuppc | Got fatal error during xfer (aborted by signal=PIPE)
I am running backuppc version 3.3.1 on an Ubuntu 16.04.5 LTS, I try to backup several Linux servers, almost Debian, ubuntu or proxmox hosts.
My issue is that when I run the Full/Incermental backup from webUI I got the message:
2018-08-06 14:22:32…
![](../../users/profiles/482013.webp)
jerome winmedia
- 1
- 1