Re: [ Attn: Randy ] Ad-hoc Parsing?

From: Herbert Kleebauer (klee_at_unibwm.de)
Date: 12/18/04


Date: Sat, 18 Dec 2004 22:57:48 +0100

Percival wrote:
> Herbert Kleebauer wrote:

> > echo {Sx{X?{Eu@Pq`Dkfk?a@o{A@CoCEFr@B@K~Tj~@CeK??BB0x>>out.com
> > out.com ff 378
 
> And, i don't see any advantage to actually writting something in
> assembly, and using the assembler, compile out.com, then distributing
> out.com with the file.

Because if you have a collection of utilities on your computer
which you frequently use in your scripts and then transfer one
of the scripts to an other computer, then there always is
at least one utility which is used by the script and which
you have forgotten to copy. You don't have this problem
if all is include within the script.
 
> > the tools the script needs). And if all you need is included in
> > the script in form of a few processor instruction (echo is an
> > internal command), the this script can be executed even if there
> > is nothing but the shell itself on the PC.
>
> echo works the (nearly exact) same way on *Nix systems.

Yes, but you don't have a so simple executable file format
like com files in DOS, which are nothing but CPU instructions
(so you can generate executable files using printable ASCII
characters only).

 
>
> I mean, user defined functions
>
> Like this in bash:
>
> #!/bin/bash
>
> function blah() { #this is a function
> echo Hello World!!;
> }
>
> blah #call the function twice
> blah

call :sub "hello world"
call :sub "hello again"
goto :eof

:sub
echo %1
goto :eof



Relevant Pages

  • Re: Executing a script with administrative rights in a user enviroment
    ... I can't give to the user the username and the relative password. ... >> Obviously I can't write this information directly in the script. ... > the logon information to start the script or another executable file is in ... > an encrypt file. ...
    (microsoft.public.windows.server.scripting)
  • Newbe Question
    ... I log into my box as root I then go to the directory that has an ... executable file or script in it. ... AJS ...
    (comp.os.linux.questions)
  • Re: 0403-006 Execute permission denied on EMCpower_install
    ... It's not a script, but an executable file. ... The EMCpower_install file is not a installation script or executable. ... My SAN guy was trying to do it himself, and told me it was an ...
    (comp.unix.aix)
  • Re: How do I add users using Python scripts on a Linux machine
    ... supply his own `python interpreter' in his PATH.) ... So when a the kernel detects that an executable file is actually a script, ...
    (comp.lang.python)
  • NEW ciasdis: a reverse engineering system
    ... in particular the PostIt-FixUp Intel assembler. ... time-consuming to analyze fully by hand. ... my assembler format has been called "it's hell". ... Man page for the script language. ...
    (comp.os.linux.announce)