02-03-2011
the script manually works, but it returns these errors:
/Library/Scripts/rms_web2.sh: line 9: /Users/admin/Library/Application Support/RMS: is a directory
/Library/Scripts/rms_web2.sh: line 10: /Users/admin/Public/RMS/RMS Coach: is a directory
/Library/Scripts/rms_web2.sh: line 11: /Users/admin/Library/Application Support/RMS: is a directory
and it doesn't run as a loginhook for some reason. i guess that part's ok with me.
for the record, i had done a:
sudo defaults write com.apple.loginwindow LoginHook /Library/Scripts/rms_web2.sh
10 More Discussions You Might Find Interesting
1. Programming
The following is my makefile. When I run "make", it gives me a bunch of error. I've compiled each file separately and there are no compilation errors.
The target is "monprc". Have a look below:
monprc: monprc.o monrep.o dsz.o
cc -o monprc monprc.o monrep.o dsz.o
monprc.o: monprc.c... (1 Reply)
Discussion started by: Yifan_Guo
1 Replies
2. Shell Programming and Scripting
Dear All,
I want acces my folder that name Log , that throught /export/home/hmi/bin/log.
I want direct to Log folder.
When I try using alias, i'm login as root:
>alias logfile='cd /export/home/hmi/bin/Log'
and when I execute
> logfile
this is work,
but after I logout and login again as... (3 Replies)
Discussion started by: heru_90
3 Replies
3. Programming
I was wondering if anyone could give me a good idea how to calculate how balanced the threading is on a multi-threaded application. I want a percentage, such as "threads are 80% balanced."
This is the way I am currently going about it, maybe it is good, maybe not.
First, whenever a thread... (2 Replies)
Discussion started by: DreamWarrior
2 Replies
4. Shell Programming and Scripting
I am a scripting noob and I have tried to search on google, but cannot find the answer as to why this script doesn't work properly.
The idea of this script is that it will list all files starting with f in a certain folder, and delete all but the three newest one. I am trying to achieve this by... (4 Replies)
Discussion started by: bronkeydain
4 Replies
5. Shell Programming and Scripting
hi,
I have been trying to make my script work but could not, tried some of the suggestions from here but I am not getting the correct result.
I have a script that was
Param1 ="$1"
Param2 ="$2"
$Script1 log -t "$param1" "$param2" | grep operation > /dev/null || {
echo "Message"... (1 Reply)
Discussion started by: rider29
1 Replies
6. UNIX for Dummies Questions & Answers
Hi I'm pretty new to scripting and I've been googling around looking for an answer but have yet to come up with a proper solution. I work with multiple android devices at a time and I'm looking to simplify my life with a script. Basically I'm looking for a script that takes the device ID's and then... (2 Replies)
Discussion started by: Onyoursix
2 Replies
7. Shell Programming and Scripting
Hello. I'm attempting to create a shell script to assist me by saving time with one of my hobbies. I am an Android Enthusiast and currently build a few roms for one of the devices.
One of the roms I make is ported from a different device to mine (I get the original for the HTC Desire HD and... (3 Replies)
Discussion started by: JHutson456
3 Replies
8. Shell Programming and Scripting
I'm having some difficulty with convincing Expect to do what I need..
I have a loop that waits for input, a specific phrase of text followed by a single word. I need Expect to capture that word following the specific phrase. It should then store the word in a variable.
I'm fairly sure it's... (6 Replies)
Discussion started by: LongLeafTea
6 Replies
9. Shell Programming and Scripting
Hello,
I am in a Unix class and have been out of town. I have been tasked to generate a couple of scripts and ahve never done it before. I have a virtual machine running Ubuntu. The task is below
Prompt the system administrator for all valid input parameters
Generate a menu to ask which... (1 Reply)
Discussion started by: jkeeton81
1 Replies
10. Shell Programming and Scripting
Hello All,
I have a file of ip addresses called activeips.txt
What I'm trying to do is run a simple bash script that has a loop in it. The loop is a cat of the IP addresses in the file.
The goal is to run 2 nmap commands to give me outputs where each address in the list has an OS... (11 Replies)
Discussion started by: Dirk_Pitt
11 Replies
LEARN ABOUT DEBIAN
app::info::handler::prompt
App::Info::Handler::Prompt(3pm) User Contributed Perl Documentation App::Info::Handler::Prompt(3pm)
NAME
App::Info::Handler::Prompt - Prompting App::Info event handler
SYNOPSIS
use App::Info::Category::FooApp;
use App::Info::Handler::Print;
my $prompter = App::Info::Handler::Print->new;
my $app = App::Info::Category::FooApp->new( on_unknown => $prompter );
# Or...
my $app = App::Info::Category::FooApp->new( on_confirm => 'prompt' );
DESCRIPTION
App::Info::Handler::Prompt objects handle App::Info events by printing their messages to "STDOUT" and then accepting a new value from
"STDIN". The new value is validated by any callback supplied by the App::Info concrete subclass that triggered the event. If the value is
valid, App::Info::Handler::Prompt assigns the new value to the event request. If it isn't it prints the error message associated with the
event request, and then prompts for the data again.
Although designed with unknown and confirm events in mind, App::Info::Handler::Prompt handles info and error events as well. It will simply
print info event messages to "STDOUT" and print error event messages to "STDERR". For more interesting info and error event handling, see
App::Info::Handler::Print and App::Info::Handler::Carp.
Upon loading, App::Info::Handler::Print registers itself with App::Info::Handler, setting up a single string, "prompt", that can be passed
to an App::Info concrete subclass constructor. This string is a shortcut that tells App::Info how to create an App::Info::Handler::Print
object for handling events.
INTERFACE
Constructor
new
my $prompter = App::Info::Handler::Prompt->new;
Constructs a new App::Info::Handler::Prompt object and returns it. No special arguments are required.
BUGS
Please send bug reports to <bug-app-info@rt.cpan.org> or file them at <http://rt.cpan.org/NoAuth/Bugs.html?Dist=App-Info>.
AUTHOR
David Wheeler <david@justatheory.com>
SEE ALSO
App::Info documents the event handling interface.
App::Info::Handler::Carp handles events by passing their messages Carp module functions.
App::Info::Handler::Print handles events by printing their messages to a file handle.
App::Info::Handler describes how to implement custom App::Info event handlers.
COPYRIGHT AND LICENSE
Copyright (c) 2002-2008, David Wheeler. Some Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2011-03-15 App::Info::Handler::Prompt(3pm)