09-13-2010
10 More Discussions You Might Find Interesting
1. BSD
When I use Mac OS X's Terminal the UI is some what easier than that of Linux...
I this just a shell or something because using Bash is a pain in RH's Linux 9. It's so sensitive about case etc. ???
In that way what is the shell that OS X uses as it's default
Bash is on OS X (OK Duh) and... (3 Replies)
Discussion started by: RedVenim
3 Replies
2. Shell Programming and Scripting
Hi,
For my bash script, terminal with bash is generate an OK output and program works right.
already,
terminal with ash have "line 48: syntax error: Bad substitution" output and program don't work.
:confused: (0 Replies)
Discussion started by: s. murat
0 Replies
3. Shell Programming and Scripting
Hi. I'm working with two BASH shells in order to perform two tasks. For simplicity, suppose that at Shell #1 I'm executing this program:
sleep 100
whose PID is 263. Meanwhile Shell #2 is waiting for its termination to follow with a second one.
I tried with:
wait 263
# Script for second... (4 Replies)
Discussion started by: hresquivelo
4 Replies
4. Shell Programming and Scripting
Hello all,
I have the following problem. In a Bash shell I run a program (I don't have the source code) which will execute some steps. At every step the program will wait for a user input. So I would like that another script which is running on a different shell will send these input togheter with... (4 Replies)
Discussion started by: alohisius
4 Replies
5. Shell Programming and Scripting
What is the practical difference among the different shell like
csh , ksh , bash etc.:confused::confused:
Please use descriptive subjects instead of single words (2 Replies)
Discussion started by: hiten.r.chauhan
2 Replies
6. Shell Programming and Scripting
I have a script that has to execute a read command in a function, this is in an ash busybox.
The code is...
trapcatch () { echo "Ctl-c Detected, what do you want to do?"
echo "Please choose the number of one of the following options"
echo "1. Jump past this Set"
echo "2. Exit... (8 Replies)
Discussion started by: tesser
8 Replies
7. Shell Programming and Scripting
Hi All,
I have a script that I wrote on a bash shell, I use it to sort files from a directory into various other directories. I have an variable set, which is an array of strings, I then check each file against the array and if it is in there the script sorts it into the correct folder.
But... (5 Replies)
Discussion started by: sgtbobie
5 Replies
8. Ubuntu
I wrote Bash script and now I want to convert it to Ash. One headache is this function:
do_adduser() {
setaddprompt
_arr_add=("Add manually" "Add via TXT" "return to main menu" "exit program")
select add_action in "${_arr_add}"
do
case "$REPLY" in
1)... (7 Replies)
Discussion started by: fzivkovi
7 Replies
9. Ubuntu
I'm trying to convert this working bash script into an Ash script,
read -p "Username:" _username
if ! ]]; then
echo "Valid"
else
echo "INVALID"
fi
However, Ash does not recognize the "=~" character.
How can I do this?
Also, is there a good reference guide, so I... (5 Replies)
Discussion started by: fzivkovi
5 Replies
10. Ubuntu
hello everybody,
i'm a beginner in ash and i want to convert this bash script to ash.
this script send a xml file to a nagios server :
#!/bin/bash
PROGNAME=$(basename $0)
RELEASE="Revision 0.3"
print_release() {
echo "$RELEASE"
}
print_usage() {
echo ""
echo "$PROGNAME... (6 Replies)
Discussion started by: mdijoux25
6 Replies
LEARN ABOUT DEBIAN
moosex::poe::sweetargs
MooseX::POE::SweetArgs(3pm) User Contributed Perl Documentation MooseX::POE::SweetArgs(3pm)
NAME
MooseX::POE::SweetArgs - sugar around MooseX::POE event arguments
VERSION
version 0.215
SYNOPSIS
package Thing;
use MooseX::POE::SweetArgs;
# declare events like usual
event on_success => sub {
# unpack args like a Perl sub, not a POE event
my ($self, $foo, $bar) = @_;
...
POE::Kernel->yield('foo');
...
};
DESCRIPTION
Normally, when using MooseX::POE, subs declared as events need to use POE macros for unpacking @_, e.g.:
my ($self, $foo, $bar) = @_[OBJECT, ARG0..$#_];
Using MooseX::POE::SweetArgs as a metaclass lets you avoid this, and just use @_ as normal:
my ($self, $foo, $bar) = @_;
Since the POE kernel is a singleton, you can access it using class methods, as shown in the synopsis.
In all other respects, this behaves exactly like MooseX::POE
AUTHORS
o Chris Prather <chris@prather.org>
o Ash Berlin <ash@cpan.org>
o Chris Williams <chris@bingosnet.co.uk>
o Yuval (nothingmuch) Kogman
o Torsten Raudssus <torsten@raudssus.de> <http://www.raudssus.de/>
COPYRIGHT AND LICENSE
This software is copyright (c) 2010 by Chris Prather, Ash Berlin, Chris Williams, Yuval Kogman, Torsten Raudssus.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-04-25 MooseX::POE::SweetArgs(3pm)