Tagged Questions
4
votes
1answer
32 views
How can I get information about my virtual desktops via the command line?
I'm curious how I can get information such as the dimensions of my desktop, which desktop is currently active, and what labels (if any) are set for my desktop enviornment (DE).
3
votes
2answers
81 views
How to get volume level from the command line?
I have a text status bar on a tiling window manager and I am using tcl to feed information to it. At the moment I need a command line that output the volume level 0% to 100%. I am using Arch Linux.
4
votes
2answers
93 views
Is there a way to simulate a “Close” event on various windows using the terminal?
I answered on Ask Ubuntu Quit all instances of gnome-terminal via a command but as you all can read gnome-terminal didn't seems to have a SIGcall I could use to simulate this "Close" event. So this ...
0
votes
1answer
83 views
how to list all the internet's IP ranges? [closed]
I was wondering if I list all the IP ranges directly available on the internet. perhaps also group them by country and ISP?
I know that a lot of people do research nowadays on datamining and ...
0
votes
1answer
66 views
How can I use a variable from a script?
A bash script is running as I defined it in Startup Applications. It is possible to display on terminal a variable used in that script? If yes, how?
3
votes
2answers
280 views
How can I determine if HTML5 player is running in browser?
I would like to find a command-line or a script that will show me if HTML5 player is running or not in a browser (firefox or chromium).
For example, to determine if Flash player is running in a ...
5
votes
3answers
216 views
How to constraint time a program runs in Linux?
I have several simulations to do, each is invoked with python simulate.py <parameter list>. The problem with these simulations is that some of them hang without quiting, which prevents me from ...
1
vote
0answers
53 views
rsstail Not Printing Output
I've installed rsstail 1.8 on my linux box and everything seems to be going smoothly, knock on wood, except for the part where rsstail isn't printing the streams. Running the command, I see that it's ...
2
votes
2answers
313 views
Averaging output of dstat
I need to average upload and download speed using dstat -n. How can I add all the received and sent data sizes that appear after dstat -n, so that I can add them and find average upload and download ...
1
vote
3answers
141 views
Rerunning the same command with a different parameter
I know that I can run the following command
ls Some{File,Folder}
And it is equivalent to running this:
ls SomeFile SomeFolder
(I also use it a lot for things like mv place_{a,b})
However, I was ...
2
votes
2answers
417 views
Concatenate multiple files under subdirectories
My directory structure is given below
x:\Project_2012-158A\Sample_4041
SampleSheet.csv
4041_CGTACG_L002_R1_001.fastq
4041_CGTACG_L002_R2_001.fastq
4041_CGTACG_L006_R2_001.fastq
...
1
vote
4answers
587 views
Checking if a file exists in several directories
I've been working on this far too long and need some help.
I need a script that will look at files in a directory and see if it exists in one of several directories.
I need something like this:
for ...
2
votes
0answers
129 views
How to emulate a KWin effect by command line?
I would like to apply the Toogle Invert Effect when I start my system.
So, I need to know how to call this KWin effect using the terminal.
OBS.: I'd tried xte "keydown Meta_L" "key i" "keyup ...
2
votes
2answers
411 views
What would it take to add a command to run a script at the completion any given random task?
I was playing around with Pushover, and had the thought that it would be cool if I could use it as an argument on any random command, so that it would run a pushover script at the end of the task, ...
5
votes
2answers
723 views
How to tweet using terminal?
I would like to tweet a message using terminal.
I tried something like:
curl -u 'TwitterUsername':'TwitterPassword' -d status=”Your Message Here” https://twitter.com/statuses/update.xml
but seems ...