Displaying number of weeks in certain format using ncal or calview story

http://unix.stackexchange.com – Don't you just love it when two commands each do one thing you want but neither do both? This is what cal does. Nice formatting. Lacks week numbers though. $ cal January 2012 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 This is what ncal does. (HowTos)

Can not copy text from chm fileview story

http://askubuntu.com – I have a download book which is in .chm format. When I open the book in Windows OS , I can copy the text in the book and paste it. BUT when I read the book under Ubuntu OS, I can not copy text from this book. Why? How to enable text copy from CHM file on Ubuntu? (HowTos)

Delete registry key via CMD script?view story

http://serverfault.com – I'm want to edit an already production .cmd script file, to have the script delete a certain registry key in the Windows registry. Firstly, is this even possible, and secondly (if that's not possible), could I create a .reg file and execute that file from with the .cmd file??? From within the .cmd script is not working: del "[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\CurrentVersion\SampleKey]" Th (HowTos)

TZ variable not exported when running from cronview story

http://www.unix.com – Hi, I have the following executable in cron: 10 * * * 1-5 /apps/bin/dmg_cronlaunch -ENVI ENVIRONMENT -EXE exec -FILE ratespb_sdos_prdf_`TZ=US/Eastern;date +\%Y\%m\%d\%H\%M\%S`.sdos > /tmp/dmg_exec.log.`/usr/bin/date +\%Y_\%m_\%d_\%H:\%M:\%S` 2>&1 Comprised of the following: /apps/bin/dmg_cronlaunch -ENVI ENVIRONMENT -> launches a set of variables -EXE executable -> Executes a (HowTos)

Virtual hosts on apache to point domain.com, domain.net, domain.org to all go to domain.comview story

http://serverfault.com – All of the names currently point to the same web server folder which is correct. That is, the domain.net, domain.org, etc all work without redirecting to the main .com How do I get visits to the .org and .net to redirect the browser to domain.com? This should be basic, but I am can't figure out the best approach. (HowTos)

How Do I Simulate a Shell Terminal via PHP?view story

http://www.unix.com – ----------- Summary ----------- I need a command/set of commands that can help me simulate a shell terminal via a PHP web page using commandline functions. How can I combine the power of nohup and a while loop to: start the shell, execute commands and print output (and errors i.e. (HowTos)

Use upstream servers based on request method with NGINXview story

http://serverfault.com – i'm using nginx's upstream directive to do some load balancing. (HowTos)

Apache send HTML without commentsview story

http://serverfault.com – I have a problem with my Apache Webserver, I got 2 environments: Development and Production. Both have the same configuration, but the first one sends the HTMLs exactly as they've been created, the second one doesn't send exactly the same file. (HowTos)

Small linux distro for displaying advertisements/bannersview story

http://www.unix.com – Hi guys (& ladies) :) I'm looking for some good linux distribution to use on my new project. The project looks like this: - tiny computer (ethernet, D-sub, usb, etc), - big-screen monitor (min 40''). All it has to do is to display some .swf advertisement in fullscreen mode. (HowTos)

Count number of column in a comma delimited fileview story

http://www.unix.com – I have a comma (,) delimited file. Code: 106232145,"medicare","medicare,medicaid",789 I would like to count the number of fields in each line. I tried the below code Code: awk -F ',' '{print NF-1}' This returns me the result as 5 instead of 4. (HowTos)

perl FileHandle Closure during after unlockview story

http://www.unix.com – Hi we have one function which is used to append data the file in exclusive lock mode in aperl script. This script is executed by multiple threads at the same time. accessing the same file.this script runs throught the day. sometimes the file2.txt size is getting reduced. for eg from 10 M to 2 M. Code: fi(file1.txt); f2(file2.txt); sub f1 {  my ($file) = @_; my $data="haitetsi (HowTos)

Print particular time upto the next occuranceview story

http://www.unix.com – Hi Guys, I am having some issue in one aspect. I am having data like - 00:00 X-1 Y-1 Z-4 A-5 E-6 . . . . 01:00 Z-9 X-1 Z-5 A-8 E-7 . . . and so on till 23:00 Z-9 X-1 Z-5 A-8 E-7 . . Now I need output like - 00:00 X-1 00:00 Y-1 00:00 Z-4 00:00 A-5 00:00 E-6 01:00 Z-9 01:00 X-1 01:00 Z-5 01:00 A-8 01:00 E-7 . . . 23:00 Z-9 23:00 X-1 23:00 Z-5 23:00 A-8 23:00 E-7 Thanks in advance. (HowTos)