This might be sort of an oddball question, but enthusiastic Google searching hasn't led me in any promising directions, whether due to lack of knowledge on my part or the fact that no one is as mean-spirited.
So, let's say I knew this ridiculously awful person, who just happened to regularly leave out semi-colons in shared PHP code, thereby breaking a website that a number of people are working on during the day. Let's say that when various entities point out the issue, this person spends at least 15 minutes trying to 'debug' the problem, despite being given the line number of the error by numerous shouting voices around the office (we just take a lot of coffee breaks now).
Say one of these frustrated workers came up with an idea one day to reprogramme this guy's keyboard so every 20th key he hit was a semi-colon, or else, to just make every key always be a semi-colon. Is there a way, either through the terminal or via a script that could be dumped somewhere, to do this?
The offender has a mac running OSX, and regularly leaves it logged in and unattended. However, he's never gone for very long, so whatever needed to be done would have to be done quickly.
Believe me, if I listed the amount of annoying things this guy did, you'd understand that he really has this coming. An entire office of PHP developers would thank you for your help, not only for the bellyache they would get laughing, but also for the distraction from the code base this would provide!
I want to run a shell script with out logging to putty but configuring it to a keyboard short cut it windows PC. Can this be done? I want this to rename a log in a specified folder in a system
Thanks (8 Replies)
Hi, I've got a bit of a ridiculous problem and wasn't sure where to post it.
I need to use the vertical bar for piping in Bash but, as per the title, am using a UK layout on a US (physical) keyboard which doesn't have a key for it in the place I'd expect. I've tried using xbindkeys and Unicode... (7 Replies)
I have solved my problem below by using a different program. Instead of xsel I am using xclip which basically does the same thing and works fine from a script invoked by a global hotkey.
I've written a simple script to copy my email address into both the... (0 Replies)
How do i read from kb using shell script but i need to read it from same line.
echo "Please Enter Your Choice "
But it goes to next line i need it to read it next to Choice and not new line. (4 Replies)
I was trying to automate the use of a third-party given shell script. The script is written to be used at run-time to collect a few variables to be provided by the user through key board, in the fashion as below:
please provide a file name to... (6 Replies)
A Solaris AXI 440 machine with Solaris 8 version.
I have PC users who use an emulation to login to the Solaris
How can I change the keyboard mapping of the Sun keyboard
to fit to the PC keyboard ?
Any comment will be appreciated.
Thanks (1 Reply)
Discussion started by: simhab
LEARN ABOUT DEBIAN
Net::Sieve::Script::Condition(3pm) User Contributed Perl Documentation Net::Sieve::Script::Condition(3pm)NAME
Net::Sieve::Script::Condition - parse and write conditions in sieve scripts
my $cond = Net::Sieve::Script::Condition->new('header');
my $cond = Net::Sieve::Script::Condition->new(
header :contains "Subject" "[Test]",
header :contains "Subject" "[Test2]")'
Parse and write condition part of Sieve rules, see Net::Sieve::Script.
Support RFC 5228, 5231 (relationnal) and regex draft
Match and set accessors for each condition object in conditions tree, "test" is mandatory
id : id for condition, set by creation order
condition : array of sub conditions
parent : parent of sub condition
AllConds : array of pointers for all conditions
not : 'not' or nothing
test : 'header', 'address', 'exists', ...
key_list : "subject" or ["To", "Cc"]
header_list : "text" or ["text1", "text2"]
address_part : ':all ', ':localpart ', ...
match_type : ':is ', ':contains ', ...
comparator : string part
Purpose : test conditions
Return : 1 on equals conditions
Purpose : write rule conditions in text format
Return : multi-line formated text
CPAN ID: YVESAGO
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
perl v5.10.0 2008-09-15 Net::Sieve::Script::Condition(3pm)