First  |  Prev |  Next  |  Last
Pages: 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
SCP and symbolic links
I use 'scp' to copy files from one server to another. Looking deeper into the file structure it is obvious that symbolic links are copied as files (i.e. they do not appear as links on the destination side). How can I solve this? Any alternative to scp? Best regards, Kenneth ... 2 Apr 2008 12:17
Measuring response time from a URL
Hi All, I want to execute a shell script which returns the response time from a URL (using wget(?)). Can this be done through a shell script and how? The OS in linux. Thanks in advance, ZM ... 2 Apr 2008 12:51
email from shell with htm attachment
Got it to work with a little pipe trick cat index.html|/bin/addhead.pl|/sendmail joe(a)test.com #!/usr/bin/perl -w use strict; use warnings; my $mysubject = join(" ",@ARGV); print<<EOF; Subject: $mysubject MIME-Version: 1.0 Content-Type: text/html; charset="windows-1252" Content-Transfer-Encoding:... 2 Apr 2008 21:56
how to specify all files of a certain string length in Bourne Shell
I have a slew of files in one directory where most of the filenames are 4 characters long. How can I use the Bourne shell (only) to specify those 4-character filenames? I can't use an asterisk since some files are longer than 4 characters. I can't use any other shell other than the Bourne shell on this parti... 2 Apr 2008 07:06
filter and then pipe a file back to itself
Is there an easy / elegant way to read from a file, then process the stream with a set of filters and pipe back to the same file? For example: Let's say I have a file B C D and I want to add an A at the top to get a A B C D I'd like to do: ( echo "A" ; cat t ) > t but that spews an angry "c... 3 Apr 2008 12:52
problem with cat and echo
Hi, I'm using Fedora Core 6 Linux with shell zsh. I have two files a.txt and b.txt, which I want to concatenate to make a third file, "c.txt". The only difference is in the new file "c.txt", I would like a new first line. Sadly, this doesn't work echo 'first_line' | xargs cat a.txt b.txt > c.txt What can ... 1 Apr 2008 17:21
While loop slowness
I have a while inside a while inside a while that is very slow for large reads. Here is the code (it is really long): { while read myline; do if [[ $myline = "<tlm-meas>"* ]];then read dayline firstpass="${dayline##<day-time>}" daytime="${firstpass%%</day-time>}" ... 2 Apr 2008 12:51
Unix process ID
Hi, I couldn't google out the answer. Is the process id number always ascending? i.e. if I start process A and a second later start process B, can I be sure that process id of B will be bigger than process id of A? I believe there is an issue when we run out of numbers (what is the max number, BTW?), but assumi... 3 Apr 2008 02:24
How to extract a C function definition from a C source file
hi, Could anyone tell me the way to extract a C function definition from a C source file ? i.e search print1 should give me the output void print1() { } when the file is void print1() { } void print2() { } ..... Thanks Thanks Megarajan ... 1 Apr 2008 13:26
interpretation issue with "nohup command &"
BTW, nohup is really necessary? On my tcsh, I just typed following and then closed my ssh client shell: make mytartarget |& tee buildlog.txt & Both make process and tee process are still continuing! SIGHUP is not delivered to those 2 back ground processes ?? Only to the parent tcsh process ? O... 1 Apr 2008 07:09
First  |  Prev |  Next  |  Last
Pages: 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78