Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: tarn
  • Order by date
  1. tarn

    Request for help on awk .

    Not a sign of the word AWK anywhere I'm afraid but if I have understood the op's question this would do it ... for _FILE in `cat file_1`; do if (fgrep -epattern1 -epattern2 $_FILE) then perl -pi.orig -e 's/pattrn3/ChangedIt/' $_FILE; fi ; done Assuming the OP was wanting to: 1) Go through...
  2. tarn

    No such file or directory - yet, file is there

    Firstly it would help to know what the file is, where it came from and how you are calling it? Is it the correct version for your OS 32bit or 64bit? Lets see the actual output from when you try and run it we may recognise the problem. As Sam says above use strace to identify exactly what its...
  3. tarn

    Checking a cluster of servers

    In answer to your question Dan, I'm sure it is possible to use expect however its really easy to set up shared key across your list of servers On your "host server" (the one that you want to run the distributed commands from) create your key's with: $ ssh-keygen -t dsa Accept the defaults and...
  4. tarn

    Checking a cluster of servers

    Some simple for loop will be what I use like ..... build a server list file: Contents of serverlist.txt ------------------ server1 server2 server3 server4 ~ ~ server19 server20 ------------------- Then create a 2 (4) line script like: #Script to cycle through servers and provide output...
  5. tarn

    Unable to delete files as sudo

    Just for reference, for any files that have strange characters or are difficult to delete I use .. # ls -larti (the i = inode) So lets make a file with a space in its name ... HP-650-Notebook-PC:~$ touch " opps.txt" try to ls it as it looks like its just called opps.txt ...
  6. tarn

    Sun solaris 10 local and remote console lost!!

    I suggest that you attach a PC to the ALOM port and login to the console and revert your changes If that is a problem (no display from the console) then drop back to the ALOM prompt #. and set INPUT/OUTPUT parameters again ..... (with the "set" command) ..... INPUT/OUTPUT...
  7. tarn

    vi - Terminal too wide

    Apparently it's a limitation of Solaris < 10, and the advice is to shrink your putty/terminal window size so that its not so wide. I've never had that error myself but if I stretch my PuTTY window too wide I do loose my typed command as it restricts the displayed characters ;( Maybe take a...
  8. tarn

    Looking for script

    One thing to just watch for is the dross (disconnected) ssh Fallback sessions (processes) left on the calling host machine after you have sent a ssh or scp command in a loop. I see this often on Solaris machines (not sure if your Linux will behave the same) but it's easy to clean up just ps...
  9. tarn

    Help with making a server

    All explained here ..... Though I cannot recommend these providers above any other it will describe what you need to know. DynDNS Laurie.
  10. tarn

    Unix create backup on a remote computer script

    Opps missed the source in here .... for HOST in hostname1 hostname2 hostname3 hostname4; do ssh $GenericUser@$HOST "cd /export/home/; tar cvf /var/tmp/$GenericUser_`date +%d%m%y`.tar; gzip -9 /var/tmp/$GenericUser_`date +%d%m%y`.tar"; done >> $resultLog/TWO_`date +%d%m%y` for HOST in...
  11. tarn

    Unix create backup on a remote computer script

    OK so one way is to write a script that calls a set of functions (these functions will have your commands scripted and you call whatever function you want or all one by one).... OK so Monaco GP started so I have to go .... though this is not tested I hope it will jog your memory and get you...
  12. tarn

    Unix create backup on a remote computer script

    Why reinvent the wheel ...checkout rsync. Unless as suggested this is a training project then yes its will be a great project and quite simple to do with basic (default) Unix tools, but you have to take the lead on starting your scripting. What I find is the best way to start is with a piece...
  13. tarn

    I need to know the number of connections that failed by timeout

    Hi, You have not said what OS (platform) you are running or what version of Apache or even the changes to the values of all your Apache parameters? It's difficult to comment without the full detail of your configuration and OS. However, I suspect that you will not see any logging (unless you...
  14. tarn

    Understanding Top output

    Hi you will probably find that TOP is not an Oracle (Solaris) default tool and you should probably look at "prstat" which is similar and just as useful. However, you can find out what version of top is installed on your Solaris machine with $ top -v Or identify the package installed that...
  15. tarn

    Create a file with setuid from Perl script

    Strange as this works for me .... -bash-3.00$ cat testperl.pl #!/bin/perl system("/bin/touch fredtest.tat"); system("/bin/chmod 4777 fredtest.tat"); -bash-3.00$ -bash-3.00$ perl ./testperl.pl -bash-3.00$ ls -alrth total 10 drwxr-xr-x 40 fred other 2.5K May 12 11:16 .. -rw-r--r--...
  16. tarn

    jumpstart script

    You don't say what errors you are getting that may help, but are you sure it's not the "test [ -f ]" and the "EOF" that's causing your problem? I'd put these type of changes in a "post Jumpstart" script myself ... Sorry otherwise no idea! Laurie.
  17. tarn

    Server will not boot without running fsck

    Well you can boot from CDRom and mount the disk and fsck and or boot CDRom and reset the root password and fsck .... If it helps here is a basic root recovery process .... Load the Solaris cdrom Take the machine down to the PROM level - # init 0 (or halt) When it comes down to the OK...
  18. tarn

    Apache rewrite SSL requests

    Ok sorry I probably misread your post .. so you are listening on https, so have you put the RewriteRule in your ssl port 443 area of the apache config or just in the default port 80 section? ok guessing here as I have no test server to try but I think you still need RewriteCond in there...
  19. tarn

    Apache rewrite SSL requests

    We do it this way .... RewriteEngine on RewriteCond %{REQUEST_URI} ^http://([^:]*):([^/]*)/(.*) RewriteRule ^(.*)$ https://%1:%2/%3 [P] In our case our proxy server reads in the http:// url and rewrites it to the same url as https:// IHTH Laurie.
  20. tarn

    Virtual server / redirection

    take a look at the Rewrite Rule this may be an option Laurie.

Part and Inventory Search

Back
Top