Search Results

Search: Posts Made By: fimblo
Forum: IP Networking 02-06-2009
2,879
Posted By fimblo
or ssh remotemachine.domain.com who
or

ssh remotemachine.domain.com who
Forum: IP Networking 02-06-2009
4,074
Posted By fimblo
um. this is a unix forum. dont you think it might...
um. this is a unix forum. dont you think it might be better to ask windows people about this issue?
12,537
Posted By fimblo
I had some similar code at home, heres a slightly...
I had some similar code at home, heres a slightly modified version for you.

Note that there are two reset functions included, depending on if you will ssh or telnet. And you'll prolly need to read...
6,519
Posted By fimblo
This wont work because of scope issues. The array...
This wont work because of scope issues. The array $arr[..] is declared in the shell, so it has to be interpreted by the shell. When you try to send it into sqsh's STDIN it won't be able to expand it...
4,994
Posted By fimblo
Even if you don't have a pretty version of ps...
Even if you don't have a pretty version of ps (with -forest flag), nor
the ptree app, you can still get the parent pid from a process when
you run a ps -ef.

You should be able to find your...
373,156
Posted By fimblo
wow, thanx :)
wow, thanx :)
6,384
Posted By fimblo
can you be a bit more specific? what do you mean...
can you be a bit more specific? what do you mean by login page? Are you coding a web CGI in perl?
Forum: IP Networking 09-23-2008
6,801
Posted By fimblo
Are you listening on 224.0.0.5? or 224.0.0.6? ...
Are you listening on 224.0.0.5? or 224.0.0.6?
If the IP next-header field set correctly? (89)

Just some wild stabs in the dark :)

/Fimblo
Forum: IP Networking 09-23-2008
6,801
Posted By fimblo
What happens when you send yourself a hello...
What happens when you send yourself a hello packet? Have you tried sending a HELLO packet from another client? (zebra, cisco, etc).
Forum: Linux 09-23-2008
4
ftp
3,153
Posted By fimblo
Have you read the RFC yet? Its quite well...
Have you read the RFC yet? Its quite well written:
http://www.ietf.org/rfc/rfc0959.txt

It will tell you exactly how to implement FTP. I wrote a client using this document when I was a student :)
7,026
Posted By fimblo
sure. The following script will dump all stdout...
sure. The following script will dump all stdout (and stderr) to file /foo/bar/baz.log till the script ends.

#!/bin/bash
exec > /foo/bar/baz.log 2>&1
echo blahonga
exit

To dump only stdout,...
5,853
Posted By fimblo
You can do this without having to do the sudo...
You can do this without having to do the sudo bit, it can be a bit tricky and the man page is a pain to read...

Instead, create some ssh-keys for your user on xyz1. copy the public key to the...
5,549
Posted By fimblo
Im guessing that you actually want to install...
Im guessing that you actually want to install some kind of monitor, if thats what you want, you could try nagios (easy to install on linux) or hoBBit (smaller and simpler, but very good).

good...
11,443
Posted By fimblo
Another way of doing this would be: # Assume...
Another way of doing this would be:

# Assume file with paths to files are in file /tmp/somefiles
for filename in $(cat /tmp/somefiles) ; do
mkdir -p $(dirname $filename)
done

This should...
1,954
Posted By fimblo
Building on shamrock's answer, you could merge...
Building on shamrock's answer, you could merge this into one line if you're running bash:

comm -12 <(sort file_a) <(sort file_b)

The <( ) construct creates a temporary file out of the output...
1,391
Posted By fimblo
Well, afaik there are two ways of fixing this: ...
Well, afaik there are two ways of fixing this:
1) Write another implementation of tail, which take regexps and hook functions to run when the regexps are matched.

I was lazy and went with
2)...
6,183
Posted By fimblo
On modern Solaris (10) and many linuces you can...
On modern Solaris (10) and many linuces you can use the command usermod, quite useful.

usermod -d /path/to/new/home target_username

/fimblo
5,087
Posted By fimblo
If you're in ksh or bash, you can add stuff using...
If you're in ksh or bash, you can add stuff using $(( )) operator:

i=1
echo $(( $i + 1 ))

Nice thing with this construction is that you can nest the math:

a=1
b=10
echo $(( $a + $(( $b +...
373,156
Posted By fimblo
Very interested to hear fpmurphy's explanation on...
Very interested to hear fpmurphy's explanation on how to change target of symlink without deleting the symlink first.

I normally delete the symlink and re-create it on one line, minimizing the...
14,557
Posted By fimblo
so how do you differ between the 'good' blank...
so how do you differ between the 'good' blank lines, which you want to keep, and the 'bad' ones, which you want removed?
2,256
Posted By fimblo
alternatively: ls -tr1| grep -A2...
alternatively:
ls -tr1| grep -A2 SRSCLAR.IN12345
if you have a grep command which supports the -A flag (gnu grep does).
29,968
Posted By fimblo
If I remember correctly older versions of bash...
If I remember correctly older versions of bash doesnt support reading a file and redirecting output to the same on the same command line. I use version 2.xxx at work and it doesnt work there.

On...
12,230
Posted By fimblo
how bout this: for file in $(find . -type f...
how bout this:

for file in $(find . -type f -iname '*.img'); do
mv $file ${file/img/iso}
done

This doesnt take filenames nor directories with whitespaces in them, to adapt the above to...
Forum: What is on Your Mind? 02-15-2008
49,824
Posted By fimblo
three laptops, one fileserver, one stationary,...
three laptops, one fileserver, one stationary, and my mythbox.
17,330
Posted By fimblo
place the stuff you want done in the background...
place the stuff you want done in the background inside parens, and add the ampersand at the end of the block, like so:

date
echo "Enter location"
LOCATION=
read LOCATION
(
sleep 3
date
) &
Showing results 1 to 25 of 30

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