Hi there,
I would like to use one exec file from a shellscript but I would like
it to be incorporated in the same file, like Nvidia do for its FreeBSD
drivers. How can I do this in a convenient way ?
Mathieu
___
freebsd-hackers@freebsd.org mailing list
It's not exactly what you are looking for:
But you could take a look at shar(1).
I don't even know for sure whether it can archive binaries.
shar gives you a shellscript, to which you could prefix your own script,
and when you run it, it'll extract the incorporated file, and you can
exec it :)
by /usr/bin/gzexe; that's one way to
do it (basically, determine the number of lines in your shell script,
append your binary file to the end of the script, and use tail to
extract only the binary file to a tempfile).
--
Dan Nelson
[EMAIL PROTECTED
- base64
- b64
- openssl base64
If relying on one of the above is infeasible:
You can't portably use inline binary data in a shell script without
preprocessing it (as with one of the above programs), since most shells
can't handle binary zeros; shar(1) fails in this case. You could
[EMAIL PROTECTED] wrote:
echo *** generating ls...
file=`mktemp /tmp/ls.XX`
[[ $? -eq 0 ]] || exit 1
Er, s/^file/lsfile/, obviously.
ari
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To
On Saturday 26 November 2005 16:14, Matthew Hagerty wrote:
Are there any hooks into CARP to run a shell script when a machine
becomes the master? Also, is there a way to force a machine to become
the master without powering off the current master (for example to do
maintenance on the current
Greetings,
Are there any hooks into CARP to run a shell script when a machine
becomes the master? Also, is there a way to force a machine to become
the master without powering off the current master (for example to do
maintenance on the current master)?
Thanks,
Matthew
On Saturday 26 November 2005 15:14, Matthew Hagerty wrote:
Greetings,
Are there any hooks into CARP to run a shell script when a machine
becomes the master? Also, is there a way to force a machine to become
the master without powering off the current master (for example to do
From: Matthew Hagerty [EMAIL PROTECTED]
Are there any hooks into CARP to run a shell script when a machine
becomes the master? Also, is there a way to force a machine to become
the master without powering off the current master (for example to do
maintenance on the current master)?
I
Matthew Hagerty [EMAIL PROTECTED] writes:
Are there any hooks into CARP to run a shell script when a machine
becomes the master?
Have you tried using devd to catch the link up / down event on the
carp interface?
DES
--
Dag-Erling Smørgrav - [EMAIL PROTECTED
Dag-Erling Smørgrav wrote:
Matthew Hagerty [EMAIL PROTECTED] writes:
Are there any hooks into CARP to run a shell script when a machine
becomes the master?
Have you tried using devd to catch the link up / down event on the
carp interface?
DES
I'm not familiar with devd
David S. Madole wrote:
From: Matthew Hagerty [EMAIL PROTECTED]
Are there any hooks into CARP to run a shell script when a machine
becomes the master? Also, is there a way to force a machine to
become the master without powering off the current master (for
example to do maintenance
Dominic Marks wrote:
On Saturday 26 November 2005 15:14, Matthew Hagerty wrote:
Greetings,
Are there any hooks into CARP to run a shell script when a machine
becomes the master? Also, is there a way to force a machine to become
the master without powering off the current master
I have such script.
# more trafdump
#!/bin/sh -
# trafdumpCopyright (c)1993 CAD lab
#
# dump all records to /var/tmp/trafd.$iface
#
# usage: trafdump interfaces...
#
PATH=/usr/local/bin
WHERE_PID=/var/run/trafd.ed0
LOG_FILE=/var/log/traffic.log
if [ $# = 0 ]; then
On Thu, Nov 23, 2000 at 02:30:54AM +0200, petro wrote:
I have such script.
PATH=/usr/local/bin
[...]
if [ $# = 0 ]; then
[...]
if [ -f $PID_FILE ]; then
[...]
if [ $? = 0 ]; then
[...]
echo error: $PID_FILE not found | tee -a $LOG_FILE
I
Your PATH variable (line 8) needs to include /bin, where both tee and [
are located.
Tony.
On Thu, 23 Nov 2000, petro wrote:
I have such script.
# more trafdump
#!/bin/sh -
# trafdumpCopyright (c)1993 CAD lab
#
# dump all records to /var/tmp/trafd.$iface
#
#
This message was sent from Geocrawler.com by "Alex" [EMAIL PROTECTED]
Be sure to reply to that address.
Hello,
I need in my shell script change upper case to
lower case for characters. Cureently , I call c
programm from script which do it.
Is anybody did this inside script?
Than
In the last episode (Dec 17), Alex said:
I need in my shell script change upper case to lower case for
characters. Cureently , I call c programm from script which do it. Is
anybody did this inside script?
#!/bin/sh
var=MixedCase
lvar=`echo $var | tr A-Z a-z`
echo $lvar
#!/usr/local/bin/zsh
On Fri, Dec 17, 1999, Alex wrote:
I need in my shell script change upper case to
lower case for characters. Cureently , I call c
programm from script which do it.
Is anybody did this inside script?
Shells such as ksh (both PDKSH and ATT KSH, available in
ports, support this) and bash
On Fri, Dec 17, 1999, Alex wrote:
I need in my shell script change upper case to
lower case for characters. Cureently , I call c
programm from script which do it.
Is anybody did this inside script?
Oops. That should be typeset -l.
$ typeset -l var
$ var=ABC
$ echo $var
abc
--
|Chris
Roger Hardiman wrote in list.freebsd-hackers:
There is a bug in the PicoBSD build shell script in and I have no idea
how to fix it. As a result, build errors are not caught.
It is all to do with Exit Status of programs called from a shell script.
Please help.
The code fragment from
Hi,
There is a bug in the PicoBSD build shell script in and I have no idea
how to fix it. As a result, build errors are not caught.
It is all to do with Exit Status of programs called from a shell script.
Please help.
The code fragment from /usr/src/release/picobsd/build/build
Hi,
There is a bug in the PicoBSD build shell script in and I have no idea
how to fix it. As a result, build errors are not caught.
It is all to do with Exit Status of programs called from a shell script.
Please help.
The code fragment from /usr/src/release/picobsd/build/build is
./stage1 21
Roger Hardiman wrote in list.freebsd-hackers:
There is a bug in the PicoBSD build shell script in and I have no idea
how to fix it. As a result, build errors are not caught.
It is all to do with Exit Status of programs called from a shell script.
Please help.
The code fragment from
Roger Hardiman wrote:
Build calls Stage1. Stage1 will return with an error code in some cases
and we want to trap this and halt the Build script.
./stage1 21 | tee stage1.out
if [ X$? != X0 ] ; then
Normally, $? will return the Exit Status of the last executed program.
However,
Hi,
There is a bug in the PicoBSD build shell script in and I have no idea
how to fix it. As a result, build errors are not caught.
It is all to do with Exit Status of programs called from a shell script.
Please help.
The code fragment from /usr/src/release/picobsd/build/build
26 matches
Mail list logo