Search Results

Search: Posts Made By: miltonkeynesguy
12,103
Posted By miltonkeynesguy
[aaaa@bbbb] $ cat a.txt ddddddddddddddddd...
[aaaa@bbbb] $ cat a.txt
ddddddddddddddddd ffffffffffffffffffffffffff dddddddddddddddddddddddddddd ssssssssssssssssssssssssssss ggggggggggggggggggggggggg dddddddddddddddddddddd...
17,854
Posted By miltonkeynesguy
Hi Denny, I could see the following entry in...
Hi Denny,

I could see the following entry in /etc/inetd.conf

[aaaa@xxxx] $ grep -i talk /etc/inetd.conf
ntalk dgram udp wait root /usr/lbin/ntalkd ntalkd

FYI, this is HPUX.
...
5,671
Posted By miltonkeynesguy
Your 1st command works fine: [aaaa@xxxx] $...
Your 1st command works fine:

[aaaa@xxxx] $ cat file
root pts/1 july3109 192.200.200.9
cse1 pts/2 july3109 192.200.200.10
cse2 pts/3 july3109 192.200.200.11
cse3 pts/4 july3108 192.200.200.12
...
17,854
Posted By miltonkeynesguy
I login to my windows desktop. the I click on...
I login to my windows desktop.
the I click on "start"-->"run" -->"telnet a.b.c.d x" to break firewall and get access to the server.

Both the users aaaa and bbbb belong to the same server.
I open...
17,854
Posted By miltonkeynesguy
talk command to chat
Hi,

Could you please advice on the following query:

There are 2 users on a unix box:
1. aaaa
2. bbbb

I open 2 putty sessions and login with the above 2 users.
Then I type the following...
4,580
Posted By miltonkeynesguy
talk command to chat
Hi,

Could you please advice on the following query:

There are 2 users on a unix box:
1. aaaa
2. bbbb

I open 2 putty sessions and login with the above 2 users.
Then I type the following...
3,139
Posted By miltonkeynesguy
flag=0 while read line do part=`echo...
flag=0
while read line
do

part=`echo $line | cut -d " " -f2`

if [ $part = "09:33:58:" ]
then
flag=0
fi

if [ $flag -eq 1 ]
then
echo $line
fi
if [ $part = "09:33:40:" ]
then
flag=1...
17,366
Posted By miltonkeynesguy
Jim, I have modified your code to the...
Jim,

I have modified your code to the following:

ls ./test_file_file ; b=`echo $?` ; [[ b -eq 0 ]] && echo "file there" ; [[ b -ne 0 ]] && echo "file not there"

It worked...
Many thanks..
17,366
Posted By miltonkeynesguy
Jim Mcnamara, Thanks it worked. a=1; [[...
Jim Mcnamara,

Thanks it worked.

a=1; [[ $a -eq ]] && echo "ok"; [[ $a -ne 1 ]] && echo "no okay"

I didnt put $a -eq 1 in the above code.
1 was missing.
...
17,366
Posted By miltonkeynesguy
Thanks...All.. But I got the following error: ...
Thanks...All..
But I got the following error:

a=1; [[ $a -eq ]] && echo "ok"; [[ $a -ne 1 ]] && echo "no okay"
ksh: syntax error: `]]' unexpected

I was trying something like the following in...
17,366
Posted By miltonkeynesguy
Unix commands in one line
Hi I want to write the following code in 1 line:

a=1
if [ a -eq 1 ]
then
echo ok
else
echo not ok
fi

The following does not work:

a=1 ; if [ a -eq 1 ] \r then \r echo ok \r else \r...
18,275
Posted By miltonkeynesguy
Max FTP sessions?
Hi,

Can anyone please tell me -

1. The command to find the number of maximum FTP sessions that can be opened by a server with other servers?

2. The command to find the number of FTP...
3,187
Posted By miltonkeynesguy
position=1 word="command" #put the following...
position=1
word="command"
#put the following in a loop
#cut -c stands for column
while [ $position -le 8 ]
do
echo `echo $word |cut -c$position`
position=`expr $position + 1`
done
3,187
Posted By miltonkeynesguy
position=1 word="command" #put the following...
position=1
word="command"
#put the following in a loop
#cut -c stands for column
while [ $position -ge 8 ]
do
echo `echo $word |cut -c$position`
position=`expr $position + 1`
done
3,187
Posted By miltonkeynesguy
position=1 #put the following in a loop ...
position=1

#put the following in a loop
#cut -c stands for column
while [ $position -ge 8 ]
do
echo `cut -c$position`
position=`expr $position + 1`
done
7,205
Posted By miltonkeynesguy
logmon procmon
Hi,

Is there a way to monitor if the logmon process is killed or running via procmon?
Please lemme know how to do it...

Regards,
MKG
5,601
Posted By miltonkeynesguy
I searched in google for deleting a file using...
I searched in google for deleting a file using inode...

I have managed to delete the file using the following...

by inode

#ls -i
#find . -inum 968746 -exec rm -i {} \;

Thanks for the...
5,601
Posted By miltonkeynesguy
The character is "sp" when i write "rm sp"...
The character is "sp"
when i write "rm sp" obviously it would say file not found.
Can you please tell how to proceed ....
5,601
Posted By miltonkeynesguy
Thanks... I have got the following output...I...
Thanks...
I have got the following output...I did not understand the CTRK + V ?
Can you please explain

byfusp01 $ ls | od -t a
0000000 sp nl d i r _ t i m e . c f g ...
5,601
Posted By miltonkeynesguy
How to delete 0 byte file with no name????
Please help me in removing the 2nd file :

-rw-rw-rw- 1 fup03a fup03a 9216 Aug 16 00:45 med_delay_log
-rw-rw-rw- 1 fup03a fup03a 0 Aug 16 18:04
Showing results 1 to 20 of 20

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