Script improvement Hi List, Given the output below, $ netstat -an | grep TIME_WAIT 10.159.244.250.80 10.159.244.250.49198 49152 0 49152 0 TIME_WAIT 10.159.244.250.49199 10.159.244.250.1984 51148 0 49152 0 TIME_WAIT 10.159.244.250.49200 10.159.244.250.1984 49944 0 49152 0 TIME_WAIT 10.159.24... 8 Nov 2009 14:04
[tcsh] Screen's ^] inserting junk Hi, I'm invoking screen from tcsh, and I get junk--consistent junk, I should say--when I press the ^] command. The junk appeats to be VIM commands: se noai a<my buffer content>se ai However ":paste" works fine. From what I looked up, "^]" is bound to "tty-dsusp" by default in tcsh. However, I couldn't get ... 2 Nov 2009 02:29
parens in sed I'm trying format the output of md5 so it does not contain unneeded punctuation. In particular, I want to remove "^MD5", the two parens and the equal sign in e.g. MD5 (./.bashrc) = 92caf5b1a55b3daf31d7616e81c94742 This should be easy but I'm encountering something strange and apparently can't see it. My ... 3 Nov 2009 03:50
bash script crontab issue Hello and thanks in advance for any assistance. I have a small bash script that connects to the db using sqlplus and runs a sql script. The script runs perfect if I run it on command line, however when running it on crontab the script does not seem to be able to see on.csv and so goes into the else routine. ... 30 Oct 2009 12:12
Installed libraries Hi all, I'm trying to install http://ab-initio.mit.edu/wiki/index.php/H5utils, but while configuring ( ./configure) I get the error: "configure: error: hdf5 libraries are required for compilation" I am pretty sure, I already installed the HDF5 library (from the link at the same site), but I guess I should "t... 28 Oct 2009 11:46
shell..an interpreter but whats an interpreter (help me clearthese doubts please) Danish wrote: Hi, Although, I have worked on shell scripts and have some basic knowledge about them, but while preparing a doc on shell scripting I got confused by the definition: shell is an interpreter. An Interpreter is a computer program which reads source code written in a high-level pro... 21 Oct 2009 21:35
get current timestamp in microseconds or milliseconds Hi, In a shell script (sh), how do I store the time in milliseconds (or microseconds, don't care) to a variable? Thanks, - Dave ... 25 Oct 2009 15:22
shell idiom to kick off background jobs and wait for completion I plot a lot of graphs in my shell script and I'd like to run it as a background job. This is what I have currently gnuplot < $GPLOTDIR/${amc}/${FILENAME}_${PERIOD}.gplot within a loop. If I plug in a & at the end, presumably it goes as a background job. How do I ensure that the shell script waits for all t... 26 Oct 2009 13:17
Want to write a script to note specific IP addresses. Hi all, I want to write a script to note specific IP addresses by appending the corresponding location informations. For detail, I describe my issue as follows: Suppose I have two files, the first file is used to store the specific IP addresses which I want to note, and the second file is used to store th... 27 Oct 2009 21:32
How to ls -lh on a FreeBSD? Usually, FreeBSD systems do not recognise the -h flag for the ls command, at least not those I 've been exposed to. Does anyone here know how to get the result of ls -lh on a FreeBSD? Stupid question I know; I mean many people on this group surely know how it is easily done. I guess by sort? Any examples would... 18 Oct 2009 19:23 |