You are not logged in.
I'm just trying to save some data from the command:
sudo /etc/rc.d/laptop-mode status
using
sudo /etc/rc.d/laptop-mode status > ~/lapstatus.out
I am able to pipe the stdout to less easily using:
sudo laptop-mode status |less
I'm not getting anything but a 2 byte file that's empty.
I'm sure I'm missing something obvious, so if anyone has any suggestions feel free to enlighten me.
Offline
I would try
cat /etc/rc.d/laptop-mode status > ~/.lapstatus.out
Offline
I would try
cat /etc/rc.d/laptop-mode status > ~/.lapstatus.out
Actually catting out the daemon huh? Well I suppose it's worth a shot. Let me try.
Well no, just as I suspected it actually cats the code out (not the output of the program) in that case.
Last edited by DarksideEE7 (2009-12-11 23:14:34)
Offline
Ah, figured it out. You gave me an idea.............I redirected stdout to cat:
sudo laptop-mode status |cat > ~/laptop.out
Worked like a charm. I'm not sure why simple redirection didn't work, but oh well.
Offline
Sweet: 'cause I had nothing else...
Offline
BTW have you tried that package on your eeePC? I just installed it and it helps quite a bit on battery consumption.
Offline
Yes - it's a terrific package.
Offline
I agree. I saw that dwm link in your sig....I've seen others running it as well. I'm going to check it out.
Offline
I didn't think it would be all that great on the Eee (I was using Openbox). But now I love it: takes up hardly any space, uses maximum screen real estate and allows you to customize exactly how all apps behave. Brilliant!
Offline
I won't be using it as my primary DE, as I use KDEmod and absolutely love it. However I love to test out new DEs, so I'm going to check it out.
Offline
Worked like a charm. I'm not sure why simple redirection didn't work, but oh well.
I could be wrong but maybe it's something to do with coloured output? Anyway nvm.
"You can watch for your administrator to install the latest kernel with watch uname -r" - From the watch man page
Offline