Search Results

Search: Posts Made By: esolve
2,198
Posted By esolve
How to run scripts within a telnet session?
I want to connect to a remote host using telnet
there is no username/password verification
just

telnet remotehost
then I need to input some commands for initialization

and then I need to...
6,707
Posted By esolve
using expect to switch users in a script
hi, I need to switch users in a script
I'm newbee to expect
I wrote two files

1 sudo.exp, since su4098 is used as root in my laptop

#!/usr/bin/expect
spawn su su4098
expect *Password:*...
4,082
Posted By esolve
how to run a command line with another user without prompts for password
Hi, I'm writing a script,
in the script I need to use tcpdump to capture some packets
however it needs root priviledge
my computer is configured by school and I have no real root priviledge
...
874
Posted By esolve
A question on cut
hi, I used cut to get the
I have a file f1 with content:

101.2 ms RTT from 3WHS
95.2 ms RTT from 3WHS
97.3 ms RTT from 3WHS
97.4...
939
Posted By esolve
a question on grep
hi, I used grep "total packets" to filter a file and get the following results, what I want is to get the lines with only one "total packets", are there any methods? thanks!


total packets:...
2,984
Posted By esolve
questions on using "sort -t"" -kn,m"
Hi,all

I want to sort file names within a folder
I used the following shell script for sorting


ls|grep ".wav"|sort -t"_" -k3,4 -n -k4,2 -n

The result is as below, and the problem is...
Showing results 1 to 6 of 6

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