OK, then try this (you will need to specify the full path to the folder you wish to copy after the RMS_LOCATION= (between the quotes): ---------- Post updated at 01:59 PM ---------- Previous update was at 01:53 PM ----------
By the way, the script would need to be run as the user who wishes to have the specified folder added to their respective home directory/Library/Application\ Support/, because the ~ symbol means the home directory path of the current user.. You could simply run my script as the logged in user who needs access to the folder.. you would have to run sudo chmod +x thescriptIgaveyou.sh to make it executable.. Mind you if you are trying to make this a loginhook ( I assume your using Mac because of the Application Support folder) you may have problems because loginhooks run with root privileges.. I suggest to make it executable and just have the user run it if they encounter a problem with RMS and need the folder copied.. You also need to make sure they have the proper permissions for the folder so you could always chmod 777 the folder to make sure it is accessible.
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)
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)
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)
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)
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)
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)
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)
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)
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)
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
cf-runagent
cf-runagent(8) System Manager's Manual cf-runagent(8)NAME
cf-runagent - Run agent
SYNOPSIS :
cf-runagent [options]
DESCRIPTION :
The run agent connects to a list of running instances of the cf-serverd service. The agent allows a user to forego the usual scheduling
interval for the agent and activate cf-agent on a remote host. Additionally, a user can send additional classes to be defined on the remote
host. Two kinds of classes may be sent: classes to decide on which hosts the agent will be started, and classes that the user requests the
agent should define on execution. The latter type is regulated by cf-serverd's role based access control. cfengine is a self-healing con-
figuration and change management based system. You can think of cfengine as a very high level language, much higher level than Perl or
shell. Asingle statement is called a promise, and compliance can result in many hundreds of filesbeing created, or the permissions of many
hundreds offiles being set. The idea of cfengine is to create a one or more sets of configuration files which willclassify and describe the
setup of every host in a network.
COMMAND LINE OPTIONS :
--help, -h
Print the help message
--background, -b
Parallelize connections (50 by default)
--debug, -d
Set debugging level 0,1,2,3
--verbose, -v
Output verbose information about the behaviour of the agent
--dry-run, -n
All talk and no action mode - make no changes, only inform of promises not kept
--version, -V
Output the version of the software
--file, -f
Specify an alternative input file than the default
--define-class, -D
Define a list of comma separated classes to be sent to a remote agent
--select-class, -s
Define a list of comma separated classes to be used to select remote agents by constraint
--inform, -I
Print basic information about changes made to the system, i.e. promises repaired
--remote-options, -o
Pass options to a remote server process
--diagnostic, -x
Activate internal diagnostics (developers only)
--hail, -H
Hail the following comma-separated lists of hosts, overriding default list
--interactive, -i
Enable interactive mode for key trust
--query, -q
Query a server for a knowledge menu
--timeout, -t
Connection timeout, seconds
AUTHOR
Mark Burgess and CFEngine AS
INFORMATION
Bug reports: http://bug.cfengine.com, .PP Community help: http://forum.cfengine.com
Community info: http://www.cfengine.com/pages/community
Support services: http://www.cfengine.com
This software is Copyright (C) 2008-2013 CFEngine AS.
Maintenance Commands cf-runagent(8)