Ubuntu :: Using Pipe For Shortcuts?
Nov 28, 2010I'm trying to set a shortcut using the pipe key ("|", this one...) like "<Ctrl>|" and no luck. Is there any special way to set this like <Ctrl><Pipe> or <Ctrl>|| or something?
View 3 RepliesI'm trying to set a shortcut using the pipe key ("|", this one...) like "<Ctrl>|" and no luck. Is there any special way to set this like <Ctrl><Pipe> or <Ctrl>|| or something?
View 3 RepliesSearched the forums for solution & am not seeing oneWrote a simple script to find Trash folders on Lucid and delete them
Code:
#!/bin/bash
sudo find / -regex ".*Trash[-]?[0-9]+?" | while read -e line
[code]....
I've written a simple server in linux used fork to create a FIFO pipe.The server create two FIFO pipe.One for server read data from client and write data to client.Then another pipe for client read data from server and write data to server.When the server read data from a client used server-pipe and then write data to client.But ,if the client no read open the pipe,the server side write will be crashed because of a broken-pipe SIGPIPE. How to check whether the read side is opened?Or,how to catch the SIGPIPE,and then my server will still execute on,not crashed!!
View 5 Replies View RelatedI'm doing ping between 2 RH servers through a VPN site2site tunnel and in some times I got in the result pipe 2 and another pipe 3 as I mark it in blue color below.
e.g.
64 bytes from 192.168.1.10: icmp_seq=0 ttl=128 time=0.229 ms
64 bytes from 192.168.1.10: icmp_seq=1 ttl=128 time=0.287 ms
64 bytes from 192.168.1.10: icmp_seq=2 ttl=128 time=0.278 ms
[code]....
What's the difference between pipe 2 and pipe 3 and what's the meaning of it?
I'm looking for an mp3 file in the firefox cache folder.I was thinking I could run the command 'find -size +2M' and pipe that output into the 'file' command to tell me which is an mp3, something like thisfind -size +2M | fileBut this doesn't work, what am I doing wrong?This is output Usage: file [-bcikLhnNrsvz0] [-e test] [-f namefile] [-F separator] [-m magicfiles] file...file -C -m magicfilesTry `file --help' for more information.
View 4 Replies View RelatedI want to kill a specific program with the kill -9 pid in a hole command. How do I pipe and kill the output from this command? pidof transmission |
View 9 Replies View RelatedI'm a UK based user and using a standard UK keyboard (Coleman based layout I think) although I have a backslash (to the left of the "Z", I can't type the character in any application. This is very frustrating when typing FQDNs amongst other things. How can I enable the backslash key for use with UK keyboard layouts. BTW I have tried all of the UK keyboards suggested in the keyboard layout dialogue
View 2 Replies View RelatedI am trying to encrypt a file on-the-fly, redirecting the output to a named pipe [fifo]. I SSH into my server and run the command:mcrypt -k key < file > named_pipethen from my laptop I try to scp it:$ scp me@server:~/dir/named_pipe d it says scp:users/home/me/dir/named_pipe: not a regular file
View 1 Replies View RelatedI'm on the command line, as the install for the proprietary ATI driver has failed. I'm following the instructions for troubleshooting here but the pipe "|" key is not working - a tilda "~" shows up when I press it.I'm wondering if this is because of the keyboard being set as UK instead of US? I did have to change this setting at the graphical login initally, whether from choosing this setting by mistake or the installer choosing it automatically when I chose English UK for the language.
View 3 Replies View RelatedI'm trying to use the output from gdialog's input box in another command with no success. code...
View 3 Replies View RelatedMy system just crashed.
kduffy101@kduffy101-desktop:~$ firefox
WARNING: pipe error (3): Connection reset by peer: file ./src/chrome/common/ipc_channel_posix.cc, line 404
Segmentation fault
kduffy101@kduffy101-desktop:~$.
Example from zenity:
Code:
#!/bin/sh
(
[code].....
Is it possible to pipe audio from espeak into a microphone device?
I've tried doing
Code:
sudo espeak --stdout "Hello world." >> /dev/audio
but I just get:
Code:
bash: /dev/audio: Device or resource busy
Im running Ubuntu server 10.04 lts
Im trying to get postfix to receive mail from one address and pipe it to a PHP file for a help desk software called Trellis Desk.
They recommended that I use Cpanel but its not free and my boss is not willing to pay for it. I need a free solution.
I know my way around Linux but Im no professional
I am having what I think is a slightly weird problem with the way some of my keys on my keyboard are mapped. When I try entering the "backslash" keys i get < and for the pipe key i get >. I have tried going through the keyboard layouts and trying other combinations but to no avail
System info
ASUS G51VX
Keyboard: Standard
Ubuntu 10.04 LTS the Lucid Lynx - released in April 2010 and supported until April 2013.
Does somebody knows which key is the pipe sybool in virtualbox?
View 3 Replies View RelatedI'm new to Linux and I'm still trying to make my linux work on an external drive. I think I have found how, but I need to use the pipe symbol in a command line and I don't have it on my keyboard.I've tried different settings for my keyboard and different language, but nothing seems to do; I try all the keys, with shift or alt, but nothing works.I'm working on Debian, Lenny, with a Lenovo 3000 v100 Laptop. Nowhere on my keyboard do I have the symbol I am looking for. I have the vertical bar divided in two, but not the continous one.Do I need somehow to remap my keyboard or add a function to a key?
View 3 Replies View RelatedIn shell, I execute "./ffmpeg -f h264 - | xxx"
Now I hope use execl function to execute above operations,
I call execl("/bin/sh", "sh", "-c", "./ffmpeg -f h264 - | xxx");
but ffmpeg doesn't work, it seems that "|" pipe don't work.
how could I solve this?
I understand that $! is the PID of a command. For example:
Code: #!/bin/bash
myprogram &
echo "PID of myprogram is $!"
I'd like to send the output of "myprogram" to both console and to a log file using the "tee" command but I also want to store the PID of "myprogam". Something like this:
Code: #!/bin/bash
myprogram | tee ./logfile &
echo "PID of myprogram is $!"
The problem is that $! is now the PID of "tee" rather than the PID of "myprogram".
We want to kill a process provided that only process name is given and we are to first find out the process id and then kill the process. Yes, in one go! That is, using pipe.
So, I tried this (the bold text):
[Code]...
I am wondering if we can with Linux create a pipe between two hosts (linux of course), so when I plug an USB disk on host1 it will be mounted on host2.
View 7 Replies View RelatedI have a text file containing the URL I wanted for mplayer to play. Currently, I play those in commend line using the following steps:
1)cat playlist
2)use mouse to highlight the link
3)type: mplayer then click both left/right mouse button
I was hoping if I can do this in comment line without mouse. I've tried the following without luck. (assume there's only 1 address in the text file)
1) cat playlist |mplayer
2) cat playlist |awk '{print $1}'| mplayer
I want to begin constructing things with pvc pipe and would like to use an open source app to do the cad with.
can anyone recommend a good one for this?
I am trying to automate some directory naming when we're manually running some scripts and are using tee to direct the output to a file (log). Right now this is what we do
Code:
./some_script.sh 2>&1 | tee /home/user/some_dir/logs/manual/some_script_20110216_1628.log
As a matter of laziness and keeping the log files consistently named, I'd like to create a function to pipe it to so that it's doing all the naming How I envision the command running
Code:
./some_script.sh 2>&1 | myfunc
And what the logfile name should look like (and in the right directory)
Code:
some_script_20110216-1628.log
I was thinking of adding a function to our profile to handle this. Just in testing I was trying to stream line right on the command line, but I'm having some difficulty in getting the name of the script that is pushing data over the pipe. Here is what I've tried
Code:
./some_script.sh 2>&1 | tee $(cd ../logs/manual; pwd)/$0_$(date +%Y%m%d)-$(date +%H%M).log
but that created a file named
"bash_20110216-1628.log"
For instance, suppose I want to pipe the output of ps -A to a gtkdialog table.
View 1 Replies View RelatedI want to pipe the output of ls in a folder to a file (lets call it test.txt) but when i do so, but when i do ls > test.txt in test.txt there is also test.txt (logical
View 4 Replies View RelatedI need to simply replace a 2 lines, or one and I'll run each command separately, in a eps file. I know I can grep the line and pipe that into the sed but I would like to keep this in a sed command. I can use sed /s and get it if I copy the section out of the file and paste it. Really just trying to rewrite the boundingbox coord's in eps files.
sed -i 's/%%BoundingBox: 00 00 88 487/%%BoundingBox: 24 315 288 487/g;s/%%HiResBoundingBox: 00 00 88 487/%%HiResBoundingBox: 26 315 288 487/g' someeps.eps
how I could save all of the mail sendmail processes to a named pipe?
View 5 Replies View Relatedis there a way to pipe a video feed from virtual box to vlc and save it as a file? cause if i could then i could save streaming videos from places like hulu and netflix or save bluray movies to a avi file for latter use.
View 6 Replies View RelatedI have a bug where WoW under wine is crashing my computer, and I want to get the data from the console, so I want to put it in a file, but I don't know how! None of the piping tutorials online helped at all.
View 2 Replies View Related