H! I have written script where it need to invoke the perl script in background, then write the pid in temp file then bring back the job to foreground. whenever the Ctrl-C or Ctrl-Z is pressed in the script has to exit and prompt should be dispalyed. but this script causing exit from shell session itself if press Ctrl-C and I tried even after setting stty intr=^c also stty -a is fine. I want to trap both Ctrl-C or Ctrl-Z and it should not exit the session but only script should exit, not login shell.
Did you find any code problem? or what might be the problem? also below fg statement echoing the commond how can we avoid that. I used 2>/dev/null, till it not working.
Please help me in this.
I have written the code as below:
Really appeciated if any suggestion.
Last edited by pludi; 06-29-2010 at 09:19 AM..
Reason: code tags, please...
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)
Hi there,
I'm using HP-UX 11 machine. I am running a script, thats gonna take a long time to execute. When I press ctrl-c to come out of my script, I have to catch that signal(ctrl-c) and display that ctrl-c had been pressed. How can I do it.
Thanks in advance (2 Replies)
Hello,
I am programming some kind of shell in special distribution of Linux. My trouble comes with programming the sort function. It should work the same like in the standard shell. When you terminate input, there's need to put End Of Transmission character, which is CTRL+D. But I am not able to... (2 Replies)
how to send ctrl-c signal in scripts ???
i am executing top command in .exp script
top command gives cpu running activities on your machine
eg
# top
top - 18:41:01 up 8:38, 5 users, load average: 0.03, 0.16, 0.16
Tasks: 172 total, 1 running, 170 sleeping, 0 stopped, 1 zombie... (3 Replies)
Hi All,
I have ran one command tail -f <filename> to view newly appended text to that file. When i was done i pressed ctrl+c command to stop it but to my suprise it didn't work. I then tried top command and pressed ctrl+c and it worked fine and command aborted.
I then just checked the tail... (0 Replies)
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)
Hey , guys I am new to shell programing ,, so need a help from you guys ...
I have to write a shell script that accepts file name or directory name from the user if it is a directory then throw an error if it is a file then give the user two options .
1.overwrite the content
2.append the... (2 Replies)
Hi friends,
I am trying to add a newline char ('\n') between the query and the commit statement in the following shell script.
#! /bin/sh
echo "select * from tab; commit;" > data.sql
I have tried typing in "Ctrl-V + Ctrl-J" combination which has inserted ^@ (NUL) character but the commit... (1 Reply)
Hi..!
I'm stuck with my automation of starting a process and keeping it running even after the current ssh session has exited..
So i'm trying to use command 'screen'. which is doing exactly what i wanted, But the problem is automation of the same.
i will have to press Ctrl+a and Ctrl+d for... (2 Replies)
Discussion started by: chandana hs
2 Replies
LEARN ABOUT DEBIAN
podviewer
PODVIEWER(1p) User Contributed Perl Documentation PODVIEWER(1p)NAME
podviewer - a Gtk2-Perl POD Reading Program
SYNOPSIS
podviewer [FILE|MODULE|FUNCTION|POD]
DESCRIPTION
"podviewer" provides a simple and attractive way to read Perl's POD documentation. You can use it to read the Perl POD pages, module
documentation and information about Perl's builtin functions.
KEYBOARD SHORTCUTS
"podviewer" supports a wide number of keyboard shortcuts. They are documented here.
o "Ctrl-U" or "Alt-Up"
Go up a level. That is, if you're reading the documentation for "Foo::Bar", typing "Ctrl-U" will take you to the "Foo" page.
o "Alt-Left"
Go back in your browsing history.
o "Alt-Right"
Go forward in your browsing history.
o "Ctrl-H"
Go home. If you have the "home" option set in your config (see below), entering "Ctrl-H" will take you there.
o "Ctrl-L"
This toggles the document index.
o "Ctrl-O"
This pops up a dialog allowing you to choose a document to read.
o "Ctrl-R" or "F5"
This reloads the current document.
o "Ctrl-Q"
This quits the program.
o "Ctrl-F"
This pops up a dialog for you to enter some search text.
o "Ctrl-G"
This performs the previous search, but from the most recently found result. You can also repeat the previous search by pressing enter
when the cursor is in the search box.
o "F1"
Loads this document.
CONFIGURATION OPTIONS
"podviewer" stores its configuration settings in a resource file, located at "$HOME/.podviewrc". This file contains simple "name=value"
pairs for various things:
o "icon-size"
If you want to change the size of the icons on the toolbar, change this value. The values are standard Gtk+ stock values.
o "home"
This is the name of the document you want to be your home page. This page is loaded when you start the program without arguments, hit
the Home button, or type "Ctrl-H".
SEE ALSO
o Gtk2 or <http://gtk2-perl.sf.net/>
o <http://developer.gnome.org/doc/API/2.0/gtk/GtkTextView.html>
o Gtk2::Ex::PodViewer::Parser
AUTHORS
Gavin Brown, Torsten Schoenfeld and Scott Arrington.
COPYRIGHT
(c) 2003-2005 Gavin Brown (gavin.brown@uk.com). All rights reserved. This program is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
perl v5.10.0 2005-10-04 PODVIEWER(1p)