search for: my_script

Displaying 20 results from an estimated 22 matches for "my_script".

2009 Jun 24
5
how to exec a directory creation before downloading a file to that directory?
...oad a file and make certain the destination directory will be there before this file is downloaded? thanks again! -jason class theclass ( exec{''mkdir -p /opt/scripts'': unless => ''test -d /opt/scripts'', } file { "/opt/scripts/my_script.sh": owner => "root", group => "thegroup", mode => 770, source => "puppet:///files/my_script.sh", } ) --~--~---------~--~----~------------~-------~--~----~ You received this mess...
2013 Feb 02
2
Question: write an R script with help information available to the user
Dear All, I would like to ask a question on how to incorporate into an R script help information for the user. I vaguely recall that I saw some instructions on an R manual, but am not able to figure them out. Hereunder is the basic setting: 1. I finished writing an R script, my_script.r, that is a function (the function is named "my_func") for a statistical procedure. This means that the user only needs to: source("directory_of_script\my_script.r"), then run, my_func(arg1, arg2, ..), to execute the procedure. 2. I would like to add some lines into "my_s...
2005 Aug 24
1
Running wine from php pages with "Xvfb" not success for my machine
...ewest version of WINE updt. August 2005) I have a simple a PHP file "wine.php", that will load an windows application via PHP page. The contents is: ============================================================ <?php echo 'Executing WINE'; exec ('/usr/local/apache/htdocs/lat/my_script.sh'); ?> ============================================================ And the contents of "my_script.sh" is: ============================================================ #!/bin/bash echo "hello, $USER. Please wait... Executing an application wine /home/takeda/app.exe ========...
2013 May 15
5
Shell Scripting Random Delay
I have a shell script that's run every 5 minutes I use to call many other shell scripts. Is there a way to wait a random number of seconds before executing each line? Something like this. wait_random 10 - 180 (perl /scripts/my_script.pl) & wait_random 10 - 180 (perl /scripts/my_script5.pl) & wait_random 10 - 180 (perl /scripts/my_script7.pl) & I have many entries in this file and I background them all because most must poll network devices which can take time. None should take over 2 minutes though. When I run th...
2009 Oct 16
2
Urgent help requested to modify a script
...d an R script but need to change it. The script currently includes hardcoded file locations on lines 12,166 and 167. I need to modify this script to allow the folder to be passed as a command line argument to Rscript.exe Can anybody help please? Regards, Ian http://www.nabble.com/file/p25924237/My_script.R My_script.R -- View this message in context: http://www.nabble.com/Urgent-help-requested-to-modify-a-script-tp25924237p25924237.html Sent from the R help mailing list archive at Nabble.com.
2012 Jun 27
1
Running R on a cluster
Hello, I have R script my_script.R . It loads a large input file "data.txt" and then outputs a large matrix "out". (the command of running it on cluster using my.cmd is put at the end) Now I have 30 different input files "data1.txt", "data2.txt" ... and "data30.txt" and want to ge...
2005 Aug 25
0
Running wine from php pages with "Xvfb" not fix yet
...=================================== # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs Xvfb:1 & PATH=$PATH:$HOME/bin export PATH unset USERNAME ========================================================= my_script.sh (locate: /usr/local/apache/htdocs/lat/my_script.sh) ========================================================= #!/bin/bash export DISPLAY=:1 echo "hello, $USER. Please wait... Executing an application wine /home/takeda/app.exe ========================================================= wine....
2001 Nov 16
1
R BATCH mode
hihi easy! i would like run r in batch mode. how could i pass through arguments for my r.script. for example: r batch my_script.R arg1 arg2 and how must i modify the r script. wolfgang -- Wolfgang Mueller Phone +41 1 256-9203, MeteoSwiss Kraehbuehlstr. 58, mailto:muw at meteoswiss.ch CH-8044 Zuerich, Switzerland http://www.meteoswiss.ch/ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-...
2004 Jul 06
0
XP Pro password changing and popups
Hi, I'm not sure how it's exactly done but XP Pro seems to block winpopups during ctrl-alt-delete session (changing passwords, workstation locking, etc) somehow. I'd like to prevent people from password changing trials and send them a popup like this: smb.conf: passwd program = my_script %m my_script: #!/bin/sh echo "Please log to 'some machine' to change your password" | \ smbclient -M $* The script works OK but not when ii is actually needed. Samba doesn't fire it up or Windows machines block it. I wonder how to make it work. Ideas ? -- Michal Kurow...
2014 Jun 23
1
Active Directory 'add machine script' parameter
...stuff when subscribing machines to the domain through a script called by smbd, as described with 'add machine script' parameter in smb.conf. It seems that this behavior isn't supported in Active Directory mode in my version : i'm still having 'add machine script = /usr/sbin/my_script.pl' in my smb.conf, but it's not executed when adding machine to the domain. I don't see anything in log in relative to this and samba-tool testparm shows me that this option is parsed by samba. Has it been remove or not ported to samba ad-dc ? Thanks, Quentin Gibeaux.
2007 Jun 12
4
fichier wxruby2
Bonjour, je voulais savoir si il est possible d''installer les fichiers wxruby2 ailleurs que dans les dossiers habituel et sans se servir de rubygems? car j''aimerais pouvoir les déplacés. Merci Sebastien _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
2012 Oct 22
4
Possible to exclude an event in Puppet dashboard?
...vent on every run, but actually I want to exclude this from showing up as "CHANGED" Is this possible, if so how can I achieve this? --- myscript: --- exec { "run_myscript" : # run myscript command => "/usr/bin/env ruby ${my_script} ${csv_files}", cwd => "${myscript_dir}", timeout => 0, logoutput => "on_failure", } -- Regards, Martin Willemsma -- You received this message because you are subscribed to the Google Groups "Puppet U...
2016 Feb 14
3
Manejo de ficheros Linux desde R
Hola a todos. Tengo un proyecto entre manos que consiste en lo siguiente: Un suario manda a un correo electrónico un mail con un fichero adjunto, este fichero se descarga de forma automática en una carpeta de un sistema que corre bajo Linux (Ubuntu), una vez descargado quisiera generar un script de R de forma automática seleccionase el último fichero descargado e hiciese con él una serie de
2005 Nov 15
3
can I use tos and fwmark at the same time?
...Can someone help me out this situation? I list my tc and iptables scripts below (for some reason I could''t attach them - "Invalid file"). Thank you in advance! --------------------------------------------------------------------------------------------------------------------- my_script.sh: #!/bin/bash tc=/sbin/tc u=kbit U=Mbit RATE=256 metro=1 for eth in ` echo eth0 eth1 `; do $tc qdisc del dev $eth root &>/dev/null $tc qdisc add dev $eth root handle 1: htb default FF # class default - non-priorized traffic $tc class add dev $eth parent 1: classi...
2007 Nov 04
3
can''t configure mongrel_cluster to start on boot
Hi everyone, I''ve been working with Mongrel, Mongrel_cluster and Apache and it is great. However, I can''t get mongrel_cluster to start at boot time. I followed the instructions from http://mongrel.rubyforge.org/docs/mongrel_cluster.html (On Boot Initialization Setup) and mongrel_cluster does not start after rebooting the machine. I made sure that the shebang line is correct and
2005 Jan 24
1
.mp3 and .ogg streamed both as .ogg
...t user. Im making an application, that selects from my collection of mp3s, oggs (and flacs) and let them be streamd to icecast2. This takes the input from a PostgreSQL table, wich gets modified... So far, im using ices, wich seems nice, becouse i can use the <script> type and it executes my_script to search a file, so ices takes that info (i.e. "/dir/my_file.ogg") and streams that file. It works ok. But only for .ogg files. Im streaming to http://url:8000/example.ogg Is it possible to stream there mp3 files? i.e. How would i transform a mp3 to ogg in a streamed way, so i can...
2006 Mar 02
1
calling RoR from command line
...ot;'' I tried to do a ''register_orders.rb 2006-02-28'' so ARGV[0] would become the date. But this prevents register_orders.rb from inserting any records, regardless of the code above. Is there any way that I can pass a parameter using script/runner ''require "my_script param1"''? Or by some other means call it and point to a date in the past? regards Claus
2006 Mar 22
3
database access from outside rails
I need to have a daemon read from and write to the database, and it would be nice to be able to use ActiveRecord and all the model/* files from my rails project rather than doing things the long way. Is there any recommended strategy for that? martin
2009 Apr 24
1
Can rails environments be loaded only once and then execute rake tasks without loading it again and again?
Hi there guys, I have a daemon that executes a rake task periodically in a loop in the backend. And every time it runs the rake task, rails environment is reloaded. Is there a way that the rails environment is loaded only once before the loop and the following rake task will not load it again and again? Thank you in advance.
2007 Oct 23
2
text management
Hi, I know that Asterisk doesn't support Instant Messaging, but I'm trying to use the AGI function RECEIVE TEXT to implement a kind of IM service. I have a sip softphone that tries to send a message to an active channel and the AGI script that expect to receive the text through the STDIN. Two problems arise: First: How can I say to asterisk to get the message? (I see on CLI console that