05-17-2005
Any ideas on how do I use this ?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How do you make a script so the user can not press ctrl+c and break out of the script?
Thanks,
:) (1 Reply)
Discussion started by: newtounix
1 Replies
2. 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
3. Shell Programming and Scripting
Hi,
I'm trying to make a script that reads the console input and terminates with CTRL+D. It's absolutely basic but I don't know how to "read" the CTRL+D. I've tried a bunch of things like
EOT=^D
while //with & without quotations
do
read input
echo $input
done
while
while ]
... (12 Replies)
Discussion started by: sanchopansa
12 Replies
4. UNIX for Advanced & Expert Users
how to trap the ctrl c in unix shell script
my script is running in while loop it should not be terminate with ctrl c.
if i press ctrl c while running script it shloud ignore the same.
please healp..........
thanks in advance (2 Replies)
Discussion started by: arvindng
2 Replies
5. Shell Programming and Scripting
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... (2 Replies)
Discussion started by: jramesh1
2 Replies
6. Shell Programming and Scripting
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)
Discussion started by: alexzander18
3 Replies
7. 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
8. Shell Programming and Scripting
The below script has Perl script in it where it gives the usage details.
filer.sh
echo
echo -en "Enter filer : "
read filer
echo "test.pl -f $filer -F L"
Output
=========
The following hosts are online and available:
Name Total Allocated Used ... (2 Replies)
Discussion started by: nareshkumar522
2 Replies
9. UNIX for Dummies Questions & Answers
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)
Discussion started by: royalibrahim
1 Replies
10. Shell Programming and Scripting
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
CAPISTRANO(1) General Commands Manual CAPISTRANO(1)
NAME
cap -- cap is an utlity to invoke capistrano tasks.
SYNOPSIS
cap <command> [options]
DESCRIPTION
Capistrano is a utility and framework for executing commands in parallel on multiple remote machines, via SSH. It uses a simple DSL (bor-
rowed in part from Rake, http://rake.rubyforge.org/) that allows you to define _tasks_, which may be applied to machines in certain roles.
It also supports tunneling connections via some gateway machine to allow operations to be performed behind VPN's and firewalls.
Capistrano was originally designed to simplify and automate deployment of web applications to distributed environments, and originally came
bundled with a set of tasks designed for deploying Rails applications. The deployment tasks are now (as of Capistrano 2.0) opt-in and
require clients to explicitly put "load 'deploy'" in their recipes.
Capistrano is a self-documenting program by giving you an extensive help listing for each command. If you think that this manual page is
outdated, simply running
cap -h
ASSUMPTIONS
Capistrano is "opinionated software", which means it has very firm ideas about how things ought to be done, and tries to force those ideas
on you. Some of the assumptions behind these opinions are:
* You are using SSH to access the remote servers.
* You either have the same password to all target machines, or you have public keys in place to allow passwordless access to them.
Do not expect these assumptions to change.
OPTIONS
Capistrano is extensible configurable, and it has the following configuration options:
-e --explain TAKS
Displays help (if available) for the task.
-F --default-config
Always use default config, even with -f.
-f --file FILE
A recipe file to load. May be given more than once.
-H --long-help
Explain these options.
-h --help
Display this help message.
-p --password
Immediately prompt for the password.
-q --quiet
Make the output as quiet as possible.
-S --set-before NAME=VALUE
Set a variable before the recipes are loaded.
-s --set NAME=VALUE
Set a variable after the recipes are loaded.
-T --taks
List all tasks in the loaded recipe files.
-V --version
Display the Capistrano version, and exit.
-v --verbose
Be more verbose. May be given more than once.
-X --skip-system-config
Don't load the system config file (capistrano.conf)
-x --skip-user-config
Don't load the user config file (.caprc)
SEE ALSO
capify (1).
AUTHOR
This manual page was written by Leandro Nunes dos Santos leandronunes@colivre.coop.br for the Debian system (but may be used by others).
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any
later version published by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
CAPISTRANO(1)