system command

Dennis Malen dmalen at malen.com
Tue Nov 1 15:22:24 PST 2005


Ken,

The only sequence that seems to work is the creation of an executable file 
and then having system command execute it. That works!

system /tmp/file

It works because I am not dealing with the interaction of "\" and the open 
quotes on misinterpreting those characters with the system command. The 
executable already resides in a UNIX directory and does not go through the 
interpretation that the system command may put it through..

My only problem is attempting to use a variable for @rn. Attempting to do 
that I need to have two files in the UNIX directory by breaking up the line 
I originally posted day One. There would then be three parts. File1, @rn and 
file2. I have to merge all three parts to get one line that can be executed. 
I could do it with an append command with the use of the system command but 
that would put each piece on a separate line.

I need to know if there is a command I can use to create the info on one 
line and then execute it. Again, this approach takes out of the equation the 
problem with the unique characters we are dealing with.

Furthermore, we have confirmed that the characters work differently and have 
different meanings. For instance when use sh -c I have to place three \'s in 
front of either a \ or an open quote. If I use the default shell I only need 
one.

As you can see if I can figure out how to put directory files and @rn on one 
line I avoid the problem.

Regards,

Dennis
----- Original Message ----- 
From: "Kenneth Brody" <kenbrody at bestweb.net>
To: "Dennis Malen" <dmalen at malen.com>
Cc: <filepro-list at lists.celestial.com>
Sent: Tuesday, November 01, 2005 5:22 PM
Subject: Re: system command


> (Top-posting left uncorrected.)
>
> Quoting Dennis Malen (Tue, 1 Nov 2005 17:09:42 -0500):
>
>> Very funny Ken,
>>
>> No it does not work!!!!!!!!
>>
>> Dennis
>> ----- Original Message -----
>> From: "Kenneth Brody" <kenbrody at bestweb.net>
> [...]
>> >> This is what I got from your line.
>> >>
>> >> ^[&oFvar searchnum=55555;CompileFile(\"260268.cs\");
>> >
>> > I am assuming that "^[" represents ESCape.
>> >
>> > Does this work?  If so, then the problem is solved.  Simply remove
>> > the ">/tmp/dennistest" part of the command.  If not, what is the
>> > correct sequence that does work?
>
> Since it doesn't work, what is the correct sequence that does work?
>
> [...]
>
> --
> KenBrody at BestWeb dot net        spamtrap: <g8ymh8uf001 at sneakemail.com>
> http://www.hvcomputer.com
> http://www.fileProPlus.com
>
>
> 




More information about the Filepro-list mailing list