Displaying 20 results from an estimated 75 matches for "scriptname".
2009 Apr 24
7
Get only script name with shell script
Hi all,
I wrote shell script and put it under the /usr/local/bin/ directory.
I use echo $0 for get script name but it has printed
"/usr/local/bin/<scriptname>" but i want to only print <scriptname>
How can i do this ?
Thanks all for help.
--
Iyi calismalar.Basarilar...
Semih Gokalp
Istanbul/Turkiye
2006 Jan 10
2
Is there a best practice in dealing with javascript dependencies?
As I''ve begun to work with several javascript libraries out there,
I''ve run in to some dependency issues that must have been solved by
others before.
For example, I''m trying to implement the jstree library from Laurie
Harper in to BundledResource. Breaking the ''jstree'' javascript from
the sample html out in to its own file caused it to fail
2008 Nov 28
2
ManageSieve and invalid scriptname
...torage directory: ~/.sieve
Nov 27 17:21:29 cambui dovecot: MANAGESIEVE(miguel): sieve-storage:
relative path to sieve storage in active link: .sieve/
Nov 27 17:21:29 cambui dovecot: MANAGESIEVE(miguel): sieve-storage:
Active sieve script symlink /home/admsis/miguel/.dovecot.sieve is
broken: invalid scriptname (points to .sieve/phpscript).
Well as you can see, a file without the .sieve is not welcome :-(
I checked the RFC and there is no requirement for a .sieve file
extension when considering scriptnames.
http://tools.ietf.org/html/draft-martin-managesieve-12#section-1.6
Is this a misplaced restrict...
2019 Jul 14
2
New improved version of nut-report script
Hi Roger and thanks! I have attached my nut report from the new script
(sans journal). I saw nothing that looked like a problem with the report
save the sections <scriptname> "Cannot access <scriptname>. Perhaps this
is from the missing journal?
On 7/14/2019 7:52 AM, Roger Price wrote:
> On Tue, 9 Jul 2019, Charles Lepple wrote:
>
>> Can you please run this script to get more information about your
>> setup? I think just gzip'ing t...
2019 Jul 14
4
New improved version of nut-report script
...od reason, BTW, for the script to NOT fine the journal
script on my machine. I had not downloaded it yet.
On 7/14/2019 9:06 AM, Roger Price wrote:
> On Sun, 14 Jul 2019, David White wrote:
>
>> ... I saw nothing that looked like a problem with the report save the
>> sections <scriptname> "Cannot access <scriptname>. Perhaps this is
>> from the missing journal?
>
> I'm wondering if the =~ operator in Bash is working as expected. What
> does command
>
> echo $BASH_VERSION
>
> report?
>
> Roger
>
> ___________________________...
2008 Jul 29
1
Removing script file
Colleagues,
(Running R 2.7.0)
I have a script that I want to delete as it completes execution. The
penultimate line of the script (before the quit command) is:
file.remove("Scriptname")
The script is executed as:
R --no-save < Scriptname
In OS X and Linux this is successful and returns:
> > file.remove("x")
> [1] TRUE
and the file is deleted
In Windows XP, it returns:
> [1] FALSE
and the file is not deleted.
I realize that this is an OS issue r...
2018 Dec 14
2
Re: [PATCH nbdkit 1/3] sh: Implement inline scripts.
...nbdkit proper rather than a script parameter?
Probably not worth a mention that a local file named '-' can still be
invoked via [script=]./- (there, script is optional because the leading
./ avoids the leading -).
> +static char *
> +inline_script (void)
> +{
> + const char scriptname[] = "inline-script.sh";
> + char *filename = NULL;
> + char *cmd = NULL;
> +
> + if (asprintf (&filename, "%s/%s", tmpdir, scriptname) == -1) {
> + nbdkit_error ("asprintf: %m");
> + goto err;
> + }
> +
> + /* Safe because both...
2010 Jan 09
2
problem with mailing (nut 2.4.1 and a powermust650 -> megatec_usb)
...TT SYSLOG+WALL+EXEC
NOTIFYFLAG NOCOMM SYSLOG+WALL+EXEC
NOTIFYFLAG NOPARENT SYSLOG+WALL+EXEC
RBWARNTIME 43200
NOCOMMWARNTIME 300
INALDELAY 5
the /root/upsmailer is just a simple shell script that mails the events,
it looks like:
#!/bin/bash
RECIPIENT="controller at xxx"
SCRIPTNAME=`basename $0`
[ `echo $UPSNAME | wc -w` -eq "0" ] && UPSNAME="unknown"
[ `echo $NOTIFYTYPE | wc -w` -eq "0" ] && NOTIFYTYPE="unknown"
echo "$*" | mailx -s "$SCRIPTNAME: $UPSNAME $NOTIFYTYPE" $RECIPIENT
exit 0
When i disco...
2010 Jun 30
0
drb problem? ringy-dingy won't answer...
...rors.
Am using Ruby 1.8.6.26 , Ringy-Dingy 1.2.1, dj 1.8.4.
*********The server:
require ''rinda/ring''
class ScriptServer
include DRbUndumped
attr_accessor :result
def run(fullScript)
myTS = Time.now.strftime("%Y%m%d%H%M%S")
msg = "===> Starting #{scriptname} in run #{scriptrun} on
#{scriptenv} at #{myTS}"
puts msg
@result = "***#{scriptname} Launched [#{scriptlaunch}]"
rslt = fullScript.run
@result << rslt
msg = "#{scriptname} Completed [#{Time.now.strftime("%Y%m%d%H%M
%S")}]"
@result &l...
2006 May 31
1
about init.d script
Hi folks,
someone using Debian? I need the init script, if you please :)
Thanks for your support
Regards
Andrea
2002 Mar 11
4
svm in e1071 package segment fault in redhat 7.2
Hi, Guys
I run one simple R script like this
library(e1071)
data(iris)
attach(iris)
model <- svm (Species~., data=iris)
The R version is 1.4.1. The OS is standard redhat 7.2.
Then I got a segmentation fault like this (run through
R CMD BATCH scriptName)
/usr/local/R/lib/R/bin/BATCH: line 54: 28513 Done
(
echo "invisible(options(echo = TRUE))"; cat ${in};
echo "proc.time()" )
28514 Segmentation fault | ${R_HOME}/bin/R
${opts} >${out} 2>&1
There is no problem if the R-binary is running...
2010 Nov 02
2
get the scripname within the executed myscript.r
...y executing all decompose_data.r in the directory tree), or by copying new
"links".r to the directory. A small inconvenience of this way of executing
is, that ones named, it is hard to change the name of the script. Therefore
I would like to introduce a function that reads the name of the scriptname
executed somewhere deep in my directory tree and executes the proper
script.r in the root. If anybody read till here, please: Is there a more
convenient/straightforward way how manage more scripts through a directory
tree with datasets and keeping them altogether updated?
Thanks for listening, Zro...
2016 Nov 23
2
Active sieve script symbolic link doesn't update when changed.
...filters aren't
processed.
Any help would be greatly appreciated.
~# grep sieve /var/log/syslog | nano temp.save
Nov 23 01:32:09 1 dovecot: lda(steve at degga.net): Warning: sieve: file
storage: Active Sieve script symlink
/var/mail/vmail/degga.net/steve/.dovecot.sieve is broken: Invalid
scriptname (points to myfilter.svbin).
vmail at 1:/var/mail/vmail/degga.net/steve/mail$ ls -l -a
#redacted irrelevant stuff
lrwxrwxrwx 1 vmail vmail 14 Nov 23 02:43 .dovecot.sieve -> myfilter.sieve
vmail at 1:/var/mail/vmail$ dovecot -n
# 2.2.22 (fe789d2): /etc/dovecot/dovecot.conf
# Pigeonhole ver...
2019 Jul 09
5
New User Questions - With Belkin USB
On Jul 9, 2019, at 12:22 PM, David White wrote:
>
> So I guess I am wondering if this is related to my problem. I have no idea how the blazer_usb driver works.
For the most part, NUT drivers ending in “_usb” (including blazer_usb) do not need a serial device node in /dev. They use libusb to talk directly to the UPS. (If you can reliably read the UPS status with upsc, then the connectivity
2019 Jul 14
0
New improved version of nut-report script
On Sun, 14 Jul 2019, David White wrote:
> ... I saw nothing that looked like a problem with the report save the
> sections <scriptname> "Cannot access <scriptname>. Perhaps this is from the
> missing journal?
I'm wondering if the =~ operator in Bash is working as expected. What does
command
echo $BASH_VERSION
report?
Roger
2019 Jul 14
0
New improved version of nut-report script
...UTE ONLINE
AT ONBATT * EXECUTE ONBATT
AT LOWBATT * EXECUTE LOWBATT
AT FSD * EXECUTE FSD
AT COMMOK * EXECUTE COMMOK
AT COMMBAD * EXECUTE COMMBAD
AT SHUTDOWN * EXECUTE SHUTDOWN
AT REPLBATT * EXECUTE REPLBATT
AT NOCOMM * EXECUTE NOCOMM
AT NOPARENT * EXECUTE NOPARENT
* ########### <scriptname> ###########*
*Cannot access <scriptname>*
As you've asked about bash versions, this system provides:
GNU bash, version 5.0.3(1)-release (arm-unknown-linux-gnueabihf)
--Larry
--
Larry Fahnoe, Fahnoe Technology Consulting, fahnoe at FahnoeTech.com
Minneapolis, Minnes...
2007 Jul 24
0
scripts with the dialog command
Is there a way to send stdin information to a script that is using
the dialog command?
I tried echo -e "\n\n\n" | scriptname
and this had no effect.
I tried scriptname << EOF
EOF
and that had no effect.
I am looking for a method that calling dialog within a script
will obey stdin.
Anyone have an idea.
Jerry
2012 Apr 11
1
quickly setting /etc/rc levels
Hi all,
I vaguely recall being able to auto set various /etc/rc levels based on /etc/init.d/scriptname.
I am about to create the sym links by hand but wondering if any one has a shortcut to auto set the links?
Thanks in advance,
- aurf
2018 Dec 15
0
Re: [PATCH nbdkit 1/3] sh: Implement inline scripts.
...ns.
Rich.
> Probably not worth a mention that a local file named '-' can still
> be invoked via [script=]./- (there, script is optional because the
> leading ./ avoids the leading -).
>
> >+static char *
> >+inline_script (void)
> >+{
> >+ const char scriptname[] = "inline-script.sh";
> >+ char *filename = NULL;
> >+ char *cmd = NULL;
> >+
> >+ if (asprintf (&filename, "%s/%s", tmpdir, scriptname) == -1) {
> >+ nbdkit_error ("asprintf: %m");
> >+ goto err;
> >+ }
> &g...
2018 Dec 14
0
[PATCH nbdkit 1/3] sh: Implement inline scripts.
...nline script" feature (script=-). Read stdin
+ * into a temporary file and return the name of the file which the
+ * caller must free. For convenience we put the temporary file into
+ * tmpdir but that's an implementation detail.
+ */
+static char *
+inline_script (void)
+{
+ const char scriptname[] = "inline-script.sh";
+ char *filename = NULL;
+ char *cmd = NULL;
+
+ if (asprintf (&filename, "%s/%s", tmpdir, scriptname) == -1) {
+ nbdkit_error ("asprintf: %m");
+ goto err;
+ }
+
+ /* Safe because both the tmpdir and script name are controlled by...