10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hey All,
I am writing one script using expect, that script which is used in spawn will accepts only 1. Enter 2. Ctrl+c
Press Control-C to exit, Enter to proceed.
Could some one share some thoughts to send the above user inputs in linux expect block ?
Thanks,
Sam (0 Replies)
Discussion started by: SCHITIMA
0 Replies
2. Shell Programming and Scripting
Hi Experts,
Is it possible to send ctrl + d signal from a inside a file made with vi, using Ctrl V , Esc and 004 , escape sequence.
Since : 004 should exit the script if executed. Is this something possible.
I am trying with vi , I put this code ^ , and trying to execute it but... (4 Replies)
Discussion started by: rveri
4 Replies
3. AIX
Hi,
Am trying to transfer file via FTP using expect script from server to client
i need to interrupt the file transfer between server and client
Please help what should used in expect code..
I used
send "ctrl+c\r"
expect "Aborted"
but that didnt work.. I need what should... (3 Replies)
Discussion started by: Priya Amaresh
3 Replies
4. Shell Programming and Scripting
Hi,
while executing shell script, in the middle of the process, if we kill the shell script( ctrl+z or ctrl+c), script will be killed and the files which using for the script will be in the folder.
How to handle those scenarios. Is there any possibilities, if user breaks the script, I need to... (3 Replies)
Discussion started by: ckchelladurai
3 Replies
5. Shell Programming and Scripting
Hi All,
I need to place a ctrl-c interrupt in a bash script, there is no other way, it has to be done :)
can someone please advise how would I go about this?
i want to use ctrl c in below code, after the code excution of just 1 min or 1sec
java Cspsamp 111.19.5.172 7025 rd1... (6 Replies)
Discussion started by: aish11
6 Replies
6. Shell Programming and Scripting
im trying to make a trap signal 2 (ctrl c) in a bash script
if a user presses ctrl c while running the script it should display an error message but not quit the bash script just yet. User will have to press "enter" to quit
This is what i have so far
#trap trap_control 2
#while true
#do... (6 Replies)
Discussion started by: gangsta
6 Replies
7. Shell Programming and Scripting
Greetings,
I am writing an Expect script to automate multiple processes on an HP-UX system. Everything has gone fine so far but I now have run into a problem. One of the processes that I'm trying to automate requires the key combination of ctrl break and I have so far been unable to figure out... (1 Reply)
Discussion started by: g_trueblood2000
1 Replies
8. Shell Programming and Scripting
Hello,
I have to send SIGSEGV to the thread.
What is the simplest and efficient way to do that? (6 Replies)
Discussion started by: Rahulpict
6 Replies
9. Shell Programming and Scripting
Hello
I have a master startup script (let's call it myScript) that displays a menu from which the user can start/stop several instances of a server. When I issue the start command for one of the servers from the menu and then exit myScript through the provided mechanism (enter "q" in this case),... (2 Replies)
Discussion started by: EvilBoz
2 Replies
10. AIX
I wrote a ksh script for Helpdesk. I need to know how to disable ctrl-c,ctrl-z,ctrl-d..... so that helpdesk would not be able to get to system prompt :confused: (6 Replies)
Discussion started by: wtofu
6 Replies