Re: Supplying configuration file via bash

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 20 September 2016 at 11:07, Etan Kissling <kissling@xxxxxxxxx> wrote:
> Greetings,
>
> I'd like to start hostapd without a stored configuration file from a script.
> Is it possible to do that, e.g. with config as a heredoc, similar to the following snippet?

You can try on bash4:

hostapd <(cat <<EOF
// config goes here
EOF
)

On rc shell:

hostapd <{cat <<EOF
// config goes here
EOF
)

Generally on linux:

hostapd /dev/stdin <<EOF
// config goes here
EOF

/dev/stdin points to /proc/self/fd/0 meaning you can use these paths
interchangeably.


Michał

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux