Search Results

Search: Posts Made By: newb1000
Forum: Red Hat 09-01-2011
1,583
Posted By newb1000
ssh daemon question
Hi,

I'm trying to connect from one server to another via ssh, the server that I'm connecting from only has openssh installed. The server that I'm connecting to has the following packages...
1,711
Posted By newb1000
Hi, that does seem like a great idea but it...
Hi, that does seem like a great idea but it didn't work when I tried it, it left the spaces in. :confused:



---------- Post updated at 03:06 PM ---------- Previous update was at 03:01 PM...
1,711
Posted By newb1000
stuck on first script with sed issue
Hi,

I'm developing my first bash script and have made good progress but stuck at this point.

I've run sed on a text file to extract some data and have saved it into a variable e.g.

$blah...
3,922
Posted By newb1000
Hi Corona, I think the reason is that there is...
Hi Corona, I think the reason is that there is some sort of firewall on server2 so it will only accept connections from server1 rather than directly from my computer.

I have got a shortcut on...
3,922
Posted By newb1000
Hi, I did think about it a bit more but then I...
Hi, I did think about it a bit more but then I realised, if everytime I log onto remote server1 and its bashprofile tells me to ssh2 to remote server2, then I wont be able to actually log into...
6,478
Posted By newb1000
Thanks zaxxon, I'm not sure I can do it on...
Thanks zaxxon,

I'm not sure I can do it on the puttyshortcut as I already have the session name of the server I connect to once putty runs. I need to then connect to another server after that...
6,478
Posted By newb1000
connecting to an ssh session with putty/bash.
Hi,

sorry if this is the wrong forum for this question but I couldnt spot another obvious forum for it.

I have a windows shortcut which opens up a saved session in putty. From this session I...
3,922
Posted By newb1000
Putty shortcut and ssh to another server question, possible in bash?
Hi,

sorry if this is the wrong forum for this question but I couldnt spot another obvious forum for it.

I have a windows shortcut which opens up a saved session in putty. From this session I...
1,314
Posted By newb1000
Thanks, that does make sense, basically you're...
Thanks, that does make sense, basically you're removing everything apart from what I'm searching for.

I tried this with:

cat file | grep "<item>" | sed <and your command>

which leaves me...
1,314
Posted By newb1000
Thanks for the tip, it didnt quite work though. I...
Thanks for the tip, it didnt quite work though. I tested it as follows:

echo "<item> testst <item>" | sed -e "s/^<item> *\([^]*\) *<\/item>/\1/"
sed: -e expression #1, char 33: Unmatched [ or [^...
1,314
Posted By newb1000
Need help with first shell script pls.
Hi,

I'm trying to extract information from one file to update another one and am a bit stuck.

the first file is made up of tags e.g.

<item>a@b.com</item>
jksdhfjkdsh sldkjfds l klsjdf ...
Showing results 1 to 11 of 11

 
All times are GMT -4. The time now is 09:32 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy