i guess this is better.
mkfifo /pipe/ ;java test > /pipe & head -n 10 /pipe; kill $!; rm /pipe
Does anyone know how to do this with regular pipes??
Type: Posts; User: brian8765; Keyword(s):
i guess this is better.
mkfifo /pipe/ ;java test > /pipe & head -n 10 /pipe; kill $!; rm /pipe
Does anyone know how to do this with regular pipes??
I have this:
mkfifo /pipe; java test > /pipe & head -n 10 /pipe; lsof /pipe 2>/dev/null | awk '$2 ~ /[0-9]/ {print $2}' | xargs kill; rm /pipe
But its really really messy
Hi guys,
Lets say I have a java process, that just prints out lines and lines of text.
I want to head -n 10 that java program, so I do
java test | head -n 10
This however, does not kill the...
Thanks for that ofnuts.
Hi Can someone tell me why this python code is not working. Its supposed to be a counter thing, very simple.
Many Thanks
from Tkinter import *
from thread import *
from time import sleep
...
/var/log/Xorg.0.log
http://paste.ubuntu.com/7024434/
That did the trick, thank you. I have added that line to the boot parameters permanently.
cat /proc/cmdline:
BOOT_IMAGE=/boot/vmlinuz-3.11.0-17-generic...
Hi,
That solved the issue of slow response,many thanks. However this is only the case when I change it with the slider in settings. With the fn key it is still slightly slow to respond and cannot go...
Hi Thanks for the quick reply.
cat /proc/cmdline:
BOOT_IMAGE=/boot/vmlinuz-3.11.0-17-generic root=UUID=5e4fb84e-d8e6-46e7-aa6f-06bed9dfc9ee ro quiet splash vt.handoff=7
lspci -k | grep -iA2...
Hi,
Dell Latitude E5430
Ubuntu 13.10
Intel 3rd generation Graphics card
The brightness level is slow to react. This is when I change it via fn buttin and in the brightness settings. It takes...
Hi,
I downloaded the 64 bit version of ubuntu 12.10 and I noticed that the size of the file (800.1 MB) is different to the one that is downloadable straight from the server (750 MB or something like...
I have an eircom zyxel router hooked up to an ethernet port in my college room. The internet works fine but I have no idea why. It is connected to a network with the 192.168.1.etc range and it's...
Can anyone please tell me how to fix an error in ubuntu one.
Every time I try to open it and go to the "folders" tab it loads saying "Getting information" and afterwards it errors with
"Sorry, an...
This will permanently disable the guest account completely, not allowing guests to login from startup (which is what i want) but not allowing me to switch to guest account while logged in.
I want to know how to disable guest login but keep the guest login, similar to previous versions of ubuntu. Tutorials on the internet show how to disable the guest account completely. I want it so...