9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I need help in making my script run perfectly as expected.
This is a snippet from my script. I am trying to read the ";" from the below output using the expect command, but the command is not detecting it. Could you please help me correct the expect string?
Snippet:
----
---... (2 Replies)
Discussion started by: sonicj
2 Replies
2. Shell Programming and Scripting
Hi, I wanted to automate the scp command where i do not want to enter the password each time. So thought of using expect command. Script is executing without any issues but files are not copied to remote server. Can any one help me?
Below is my shell script..
#!/bin/ksh
... (1 Reply)
Discussion started by: balasubramani04
1 Replies
3. Linux
Hello guys,
Is there any command to check the all child processes of a process like `ptree`?
ptree is not working in Linux..
Regards,
Raghu (3 Replies)
Discussion started by: raghu.iv85
3 Replies
4. Shell Programming and Scripting
hello
please if anyone can help me make a shell script similar to the command HEAD and TAIL
THANKS (3 Replies)
Discussion started by: BELLA86
3 Replies
5. Shell Programming and Scripting
Hi all,
I am trying to create a file that shows the CPU usage, constantly updating (similar to TOP).
So far i have a file (called test) containing:
echo "The current CPU usage is:" `ps -e -o pcpu|awk 'NR > 0 { s +=$1 }; END {print s"%"}'`
and then I ran the command:
watch -d 0.5 -t... (3 Replies)
Discussion started by: mikejreading
3 Replies
6. Linux
Hello,
I am doing a project which asks me to enter password 4 times in a row. I need to enter the same password 4 times. My target is to enter password once and apply it 4 times.
My friend told me to use "expect" command. Can you please give me a sample code to do so.
sample command :- $ ssh... (1 Reply)
Discussion started by: nsharath
1 Replies
7. Linux
Hello all;
I've been having trouble completing a script (bash) because I can't get past the issue of finding a line in a file. For example, I have a file like this:
ddmmmyyyy Lon Lat
24may2003 -100.0 24.1
25may2003 -100.1 24.0
28may2003 -99.5 23.2
....etc... (4 Replies)
Discussion started by: lunchtime
4 Replies
8. UNIX for Dummies Questions & Answers
Hello all,
I need a help in unix. is there any command in unix similar to doskey in MS Dos. It taked pain to enter the big command again and again.. the up and down arrows do not bring the previous commands on the prompt. so pls let me know if there is any command to enable the doskey kind of... (4 Replies)
Discussion started by: halel
4 Replies
9. Shell Programming and Scripting
I need to run a remote application(GUI) in a client.i.e on running a script in the client machine i should get the GUI application which is running in the server by providing password through the script.Will expect or autoexpect command suit for this scenario?
could anyone help me by posting some... (0 Replies)
Discussion started by: arun_v
0 Replies