[syslinux] ipappend and dos

ganapathy murali krishnan gmurali at cs.uchicago.edu
Wed Jun 9 12:46:12 PDT 2004

http://garbo.uwasa.fi/pc/unix.html has the C code for a lot of Unix 
utilities which can be compiled for DOS.
You can just grab cut.c (from the file cut.zip), and compile it to a 
.COM file using OpenWatcom compiler (wcl -3 -osx -mt cut.c). This 
together with SENVAR.COM should do the trick.

- Murali

Aaron McSorley wrote:

>I'm using ipappend and getargs.com with a dos boot image to
>get the environment variables for the IP and MAC. The format
>of the %ip% environment variable is
>  ip=<client-ip>:<boot-server-ip>:<gw-ip>:<netmask>
>Is there a way to tell ipappend to assign these to individual arguments.
>Or does anyone know a good way to parse each of these to individual variables in dos.
>What I want to get is
>  clientip=
>  bootserver=
>  gw=
>  netmask=
>And for the MAC the format is something like
>  BOOTIF=00-00-00-00-00...
>Anyone know how to strip out the dashes.
> -Aaron
>SYSLINUX mailing list
>Submissions to SYSLINUX at zytor.com
>Unsubscribe or set options at:
>Please do not send private replies to mailing list traffic.

More information about the Syslinux mailing list