First  |  Prev |  Next  |  Last
Pages: 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
Unix scripting - Exclude fileName using For loop
How can I exclude a fileName within a For Do script? for x in A.log B.txt NOT C.log do <<taskHERE>> done I am scanning a single directory and if the fileName has string 'someName' I want to exclude it from the For statement. Thanks... ... 21 Jan 2010 02:22
on failure
I have a line of bash code that fails sometimes and there's nothing I can do about it except possibly do something on failure. The line of code, not being very straight forward, would probably be a distraction so I'll simplify it: ( program -a -b ) > /dev/null Should I enclose the entire line in another se... 20 Jan 2010 19:42
Run a program under certain amount of physical memory?
Hi, I want to install qt in my Dreamhost Linux host. As you know, any hosting service will limit its users resource such as CPU and memory. When linking QT, it will cause the ld linker more than 400M memory, and then it get killed by the process monitor of Dreamhost... I try to google for hours without finding... 18 Jan 2010 12:00
Control+Backspace (readline)
I want to bind Control+Backspace in readline. Is this possible? When I add "\c-\b": kill-word inside ~/.inputrc, there is no effect; Control+Backspace behaves the same as Backspace. On the console, I used `showkey' to show the keycodes. They are: ^? for Backspace ^H for Control+Backspace ^[^? for Meta+Bac... 16 Jan 2010 18:20
Why NonZero Exit Status
Hi, I have a function MyFunc() and it prints some stuff & always returns 0. In order to suppress it I'm redirecting STDOUT to NULL. Now when I try a. MyFunc >&- ExitStatus=$? I get the ExitStatus as 1. Where when I try b. MyFunc >/dev/null ExitStatus=$? I get the ExitStatus as 0. Why ?? ... 16 Jan 2010 16:07
pipe and 'read' oddity
Hello people, the snippet from an interactive bash session below should illustrate my "problem". Stuff on the right-hand side are my comments for the respective line. I attempted assigning hours and minutes from date's output to a couple of variables using 'read': $ date '+%H +%M' | read h m ; echo $h $m | ... 25 Jan 2010 12:47
Mutt: unable to attach file
Hi all, I hope this is not the wrong forum for this question. I downloaded and installed mutt from I'm on Solaris 10 using GNU bash 3.0. When I run the mutt command, open my mailbox and send an email with an attachment, it works ok. But when I try to run it at a command line, it fails and give... 19 Jan 2010 12:23
can't find php.ini include_path
Question on adding Smarty.class.php to my php include_path. This does not seem to work. I try hitting a test smarty_test.php in my htdocs root and it can't find the file. include_path=".:/usr/lib/php:/usr/lib/php/Smarty-2.6.26/libs/" this is my /usr/lib/php directory: dr-xr-xr-x 5 root wheel 170 Jan 1... 14 Jan 2010 23:35
issues using printf
Hello, I am having problems using printf in presenting my data, in that it is all over the place. I am using the printf command: printf "%-10s %10s %10 %40s\n" $cont $lock $set $time_cont Where $cont will have a max of 8 chars, where $lock and $set will have a max of 5 chars, and $time_cont is a time stamp) ... 14 Jan 2010 15:48
$RANDOM in braces
In Bash 3.00.15(1): this works # echo {1..10}{a,b,c}{d,e,f} 1ad 1ae 1af 1bd 1be 1bf 1cd 1ce 1cf 2ad 2ae 2af 2bd 2be 2bf 2cd 2ce 2cf 3ad 3ae 3af 3bd 3be 3bf 3cd 3ce 3cf 4ad 4ae 4af 4bd 4be 4bf 4cd 4ce 4cf 5ad 5ae 5af 5bd 5be 5bf 5cd 5ce 5cf 6ad 6ae 6af 6bd 6be 6bf 6cd 6ce 6cf 7ad 7ae 7af 7bd 7be 7bf 7cd 7ce 7c... 14 Jan 2010 12:25
First  |  Prev |  Next  |  Last
Pages: 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55