You can use logsave command to save the output of a command in a logfile. General syntax is as follows:
logsave /path/to/logfile command-name argument(s)
The logsave program will execute command-name with the specified argument(s), and save a copy of its output to logfile. If the containing directory for logfile does not exist, logsave will accumulate the […]
Today I’ll show you how to run a command periodically using a clear python script.
Here is the code:
——————————————————————————————————————————-
#!/usr/bin/python
#Bel Laboratories’ Code
import time, os, sys, string
#define main function
def main(cmd, inc=60):
while 1:
os.system(cmd)
time.sleep(inc)
#check if it is the main […]
LONDON — Advanced Micro Devices Inc. Sunnyvale, Calif. and a regional medical association have been accused of being responsible for birth defects in an Austin, Texas, youth born with a missing lower right arm and lifelong cognitive deficits, in a lawsuit filed yesterday in Travis County District Court.
The youth is Ryan Ruiz who turned […]
Sometimes when you visit a site that requires loggin in, you find saved credentials by your browser (i.e. :firefox). Wanna see them (password) ?
Just use this simple javascript code:
(past it on the address bar)
javascript:
(function()
{var s,F,j,f,i; s = “”;
F = document.forms;
for(j=0; j < f .length; ++j)
{ f = F[j]; for (i=0; i
Linux desktop user generally uses small hard disk and partition, but on server you need a large partition. For example, you cannot create 4TB partition size (RAID based) using fdisk command. It will not allow you to create a partition that is greater than 2TB.
To solve this problem use GNU parted command with GPT. […]
Silicon Valley Code Camp, a developer conference by developers, will take place this weekend October 27th and 28th. It is organized by volunteers and completely free to attend
There are several sessions that look very interesting. Topics include Java, Groovy, Testing, JavaScript, .Net and much more.
You can find the complete session schedule here (lunch included.) […]
Linux only: Loading a terminal session doesn’t seem to take all that long—until you have to do it many, many times each day. Luckily, the program Yakuake offers up a lightning-quick terminal that rolls down, gets the job done and packs away, all with a tap of F12 (or any other hot key). Yakuake […]
Version 6.7 of GDB, the Gnu Debugger, has been announced. This version adds a long list of enhancements and bug fixes, see the release announcement for more information.
Linux only: View processes running from in Linux interactively—complete with full command lines and arguments—with free application htop. Beyond providing detailed information about processes, htop displays a progress meter that fluctuates based on CPU usage, memory usage, and swap space. Easily terminate one or more processes without remembering the PID. View processes by user […]
Wow, we begin to have a good view of the language enhancements planed for Dolphin JDK7.
1. XML Syntax : blog entry by Mark Reinhold
2. Super-packages : blog entry by Gilad racha
3. Closure : a blog entry by Peter Ahé
[…]
When a user logs in what files are updated in UNIX / Linux?
Linux / UNIX have utmp and wtmp files to keep login records. Following three files keeps track of all logins and logouts to the system.
=> /var/run/utmp : List of current login sessions.
=> /var/log/wtmp : Database of past user logins / previous login […]
My friends know that Berkeley is my dream!
I have recently known that this University has published its lectures online on YouTube.
Lectures are here.
What do you think?
My friend, Doc. Gianluca Mazzilli, has recently installed Ubuntu on his notebook to try it. He told me that he wanted that his modem works… ARGH! Almost all people have truoble installing a modem (especially a winmodem on Linux), so I try to explain you how can you do this in simple steps.
First of […]
The Windows Recovery Console is designed to help administrators to recover from situations where a Windows XP-based computer does not start correctly or if it does not start at all. It allows you to perform a limited range of tasks using a command line interface and recover your system and your important documents and […]
What do you think about it?