Search Results

Search: Posts Made By: sudharsan23
18,393
Posted By sudharsan23
Invalid Command Name
I have telnet to a machine and executed some commands in it.
pls see below :

#!/usr/bin/expect

spawn telnet 170.10.11.1 2100
expect "login:"
send username\r
expect "password:"
...
17,052
Posted By sudharsan23
Thanks for your help. IT works fine successfully....
Thanks for your help. IT works fine successfully.

---------- Post updated at 01:51 AM ---------- Previous update was at 01:48 AM ----------

I have telnet to a machine and executed some commands...
17,052
Posted By sudharsan23
Telnet using shell script
Hi
I need to telnet a device with IP Address and port. After logging in, I need to execute some commands in that device. Please find the example below

telnet 170.10.11.1 2100 ...
29,074
Posted By sudharsan23
How to remove a last field from a file
Hi
I have file like this :

abc def ghi 123
fgh der 456
sss ttt uuu vvv kkk 098

I need to remove the last field and the output should be like this :

abc def ghi
fgh der
sss ttt...
14,252
Posted By sudharsan23
Thanks to all . It works fine
Thanks to all . It works fine
14,252
Posted By sudharsan23
How to insert Parentheses to each line in a file
Hi
I have a file with numbers like this :

123
456
6798
9073233
12
8644

Now, I need to insert parentheses to each and every line like below :

(123)
(456)
(6798)
(9073233)
(12)...
Showing results 1 to 6 of 6

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