A script is a sequence of commands or instructions that are executed by an interpreter program rather than compiled into a standalone executable program.
2
votes
2answers
99 views
How to consistently start Vim's command line to make a mapping work in any mode?
I try to normalize access to Vim's command line mode from any other mode in order to simplify my actual mappings. For example to make the <f6> key work from anywhere I define the following ...
1
vote
2answers
63 views
Commands for determining level of usage of server
I am scripting a new program that will connect to a cluster of machines in a VM park, and hopefully check their level of usage.
The VM clients are a combination of RHEL and CentOS, and runs on ...
1
vote
2answers
269 views
Import single rows from SQLite to MySQL?
I need to do some kind of incremental import again and again from a SQLite 3 database to a MySQL database. Column names are the same in both databases. Is there a good way to do this by a script ...
2
votes
1answer
103 views
How to change Vim's command type mode programmatically?
Is there a simple way to switch from one command type mode to another without loosing the current command line?
In my ~/.vimrc file I remap the <space> and <c-space> character, coming ...
2
votes
1answer
149 views
vim auto complete custom list
I had these two questions about this function
" how do I load a file into a list here?
" set some variable
func! CustomComplete()
" and then read the variable here so that b:list = a \n split ...
1
vote
1answer
117 views
Replacing Evernote with Emacs and markdown - .org file list
I have grown tired of using evernote with wine or with any of the linux clients. I decided to change to Emacs and write all my notes in markdown so I can easily publish them in HTML and sync them with ...
1
vote
1answer
468 views
grep output of expect script
I'm trying to run some expect language, and grep/parse the output all in one script. I want to grep the output of and look for "error" (I should note that standard linux commands like awk, sed, grep, ...
1
vote
1answer
333 views
Script that unpacks a initrd, allows editing of the preseed.cfg and the packs it to cpio and gzip again
I want to program a script that allows what is said in the title. So basically I gunzip the initrd, than unpack the cpio, open vi to allow editing, save, pack with cpio, and gzip again, so nothing ...
2
votes
0answers
204 views
Can capabilities be used in scripts without setcap'ing the interpreter binary?
Right now I'm using cap_net_bind_service MY_USERNAME in /etc/security/capability.conf.
Now I just need to set cap_net_bind_service+i on the interpreter of my favouite scripting language to be able to ...
2
votes
0answers
113 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 ...
1
vote
0answers
21 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 ...
1
vote
0answers
289 views
Cron file syntax checker/validator script
Does anyone know a script (bash, perl, php ...) to validate the syntax of crontab files?
I found this http://www.intuitive.com/wicked/showscript.cgi?053-verifycron.sh but just Vixie cron notation is ...
1
vote
0answers
370 views
Quickly check whether many network hosts are up-and-running
Objective: check if a host is up-and-running on the network,
with a method that can be efficiently parallelized over many hosts.
Emphasis on a QUICK turnaround of the check.
Reason to emphasise ...
1
vote
0answers
85 views
Perl Script to Display Pork Offline Message
I use pork 0.99.8.1 on openSuse 11.4 for my AIM account when I don't want to use irssi + bitlbee. The only problem I have encountered so far is that offline messages are not displayed. I just get a ...
-1
votes
0answers
22 views
Creating a multicolumn test menu from a script
I would like to create a text menu from within a script.
I would like it to be multicolumn or a grid with multiple options for each entry.
Let me give an example:
Let us take the letters A-L and ...