Thank you very much for the suggestion. Security should be what you would expect from a typical bank. Also how intrusive are the methods you suggest? The logs are going to be generated by critical server applications. We have to be sensitive to any potential conflicts that may cause performance...
I've got Windows 2003 servers setup in my data center on a different network. I need a way for 3-10 users to access/read log files on the servers at the same time. The boxes have to be secure from unauthorized intrusion. It would be ok if users can only download the log files like in ftp. They...
This works!! Sweet! The curly brackets is what I needed. It alows me to combine all the commands I already knew into one statement and does it on a line by line basis. This is a great help. I really apreciate the help, this will really make my job so much easier and faster by allowing me to...
Remember I was saying that your command uses fields which won't work cause the fields change. The sate we need will not always be in the second field. I'm assuming $2 means field 2. I tried your command just to be sure and it did'nt work. It just printed out random data(cause field contents are...
I thought I went above and beyond stating just the problem. I even showed pieces that do most of the work, so it that requires less work on the park of the person helping me. I'm almost there so you don't have to explain a whole bunch of things to me, just that one final missing piece that I...
This looks like it might be along the lines of what I'm looking for, however it does'nt addres some of the core issues I'm having:
How to copy wildcard strings from lines that meet search parameters.
How to paste both the search pattern itself and the string within the line with search pattern...
I need to be able to determine the purpose of each line of a file. And track any future references to any past lines.
Here are conditions:
if line has "ObjectName", then line is "Object"
if file has "TOP" and "Bottom" in it, line is "locater".
If line has + and * then line is "math"
if...
I want to display a log file in a more readable format.
The core thing is to look for one string in a line then when found take certain data from that line and insert it above the line. If you found a line with CarType=Race, find out what the tire size is in that line and then copy and insert...
WOW!! Thats great! That works perfectly! That will take my script to a whole new level of functionality. Thank you very much! That was the missing piece I needed. Now to work on incorporating basic AI.
You are the man PHV!! That works like a charm! I just set the field seperator and bam! This is great! Being able to do this opens up MANY possibilities for me. Thank you VERY much!
No X-Windows unfortunately.
ssh -l login $userserver "cd $userpath; $mycommands; echo 'Type exit when done'; exec $SHELL"
The above works great, except for the fact that if the user tries to use something like vi, the display gets messed up. I'll see if I can figure out a work around.
I was'nt sure if that was awk since it does not apear to follow the AWK syntax and I tried it and get this:
% cat -v fix.log | grep ABT1969 | awk for(i=1;i<=NF;++i)if($i=="string")print $i
bash: syntax error near unexpected token `for(i'
Where an how should I be using this?
By the way, another aproach on this would be using awk or sed to find a string and wildcard and then ONLY display what it finds or delete the rest of the line. Basically a grep -o alternative.
For message:
Frank^ATimmy^A4504
find ^ATim*^A(begin with "Tim" and end with "^A".
And display what...
Everything I read seems to deal with fixed amount of fields, but what if the amount of fields change? How can I search for a string in ALL fields(not a specific one like $1 $3) and display only that field?
If awk can't do it I'm thinking that maybe I can transfer the fields to positionals and...
Here is the code:
ssh -l login $userserver "cd $userpath; $mycommands"
At my company we have many Linux/UNIX servers and my script is supposed to automate navigation between the boxes. My script will reside on a single server and should be capable of taking user to another box, changes the...
Thats great...and surprisingly simple. I should have got that one. Only thing is I need to stay on the box that I ran the command on, not go to box, run command, leave box, go to box.
Essentially I want my script to place user on box, in a certain directory for them to look at a certain log...
Thank you very much!! Putting the commands in single quotes works! Now does anyone know how to make ssh stay on remote box after running command?
for example if you run:
ssh -l login boxname pwd
You will see pwd of remote box then end up on your local box, NOT still on remote box. I want to...
Korn-Shell on Sun/GNU Linux
I need to be able to run multiple commands romotetly. For example, from box1 run ls and pwd commands on box2.
This is what I tried:
ssh -l login boxname ls; pwd
With the above command grouping this is the result:
Command1=run ls on remote box
Command2=run...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.