Re: node link as variable in bash script?
- From: Ken Irving <fnkci@xxxxxxx>
- Date: Tue, 4 Mar 2008 09:03:14 -0900
On Tue, Mar 04, 2008 at 06:48:43PM +0100, e s wrote:
bash help
how do I make a node as a variable in a bash script?
I tried different things but none works.
something like
#variable
NODE="/dev/rfcomm2"
help very much appreciated!
-e
I don't understand your question. Bash variables are not typed, and
you can use $NODE where the string "/dev/rfcomm2" would otherwise be used,
e.g., perhaps with mknod(1):
...
mknod $NODE c $MAJOR $MINOR
--
Ken Irving, fnkci+debianuser@xxxxxxx
--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
- Follow-Ups:
- References:
- node link as variable in bash script?
- From: e s
- node link as variable in bash script?
- Prev by Date: Re: Probably very stupid script/bash question
- Next by Date: dpkg --force-architecture to install 32-bit software on 64-bit system - bad idea?
- Previous by thread: node link as variable in bash script?
- Next by thread: Re: node link as variable in bash script?
- Index(es):
Relevant Pages
|
|