Normal Topic Redirectprocess no data content (Read 1003 times)
flobo
Member
*
Offline



Posts: 16
Location: Germany
Joined: Feb 20th, 2014
Redirectprocess no data content
May 4th, 2016 at 6:50am
Print Post Print Post  
Hello everybody,

I got a problem with @Redirectprocess.

This code for example:

Code
Select All
aa = @RedirectProcess("DIR", "")
writeln(aa) 



doesn't give me anything back.

If I try this:

Code
Select All
aa = @RedirectProcess("DIR", "")

if aa <> "" then {
	writeln(aa)
} 



Sesame crashes and I can only close it.

This happened every time a condition like "if then else" is used in this constellation with @RedirectProcess.


The main thing was to update some Data via the mysql shell on a webserver and it worked.
http://lantica.com/Forum4/cgi-bin/yabb2/YaBB.pl?num=1440493130

Now I got Windows 10 Prof. 64bit and the mysql.exe directly from http://dev.mysql.com/downloads/file/?id=462039.

I don't know why it isn't work anymore.

Does anybody of you have an idea for this issue?

Thanks in advance.
  
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Redirectprocess no data content
Reply #1 - May 9th, 2016 at 4:10pm
Print Post Print Post  
Hello,

I was able to replicate it returning nothing from the dir command but I am not able to replicate a crash using 2.6.0

The odd thing is the same code returns a directory listing on other machines. I will look into it further and let you know what I discover.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
flobo
Member
*
Offline



Posts: 16
Location: Germany
Joined: Feb 20th, 2014
Re: Redirectprocess no data content
Reply #2 - May 10th, 2016 at 9:56am
Print Post Print Post  
Hi Ray,

thank you.

It's not just the dir command.

It doesn't matter what code I use.

I tried it on a 32-bit system with Win 10 Prof. there everything works great.
  
Back to top
 
IP Logged
 
flobo
Member
*
Offline



Posts: 16
Location: Germany
Joined: Feb 20th, 2014
Re: Redirectprocess no data content
Reply #3 - May 10th, 2016 at 9:57am
Print Post Print Post  
Oh sorry I forget we use here 2.5.3.
  
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Redirectprocess no data content
Reply #4 - May 10th, 2016 at 3:29pm
Print Post Print Post  
Hi Flobo,

If you change your code to

Code
Select All
aa = @RedirectProcess("CMD /C DIR", "")
writeln(aa)  



What happens?

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
flobo
Member
*
Offline



Posts: 16
Location: Germany
Joined: Feb 20th, 2014
Re: Redirectprocess no data content
Reply #5 - May 11th, 2016 at 6:26am
Print Post Print Post  
Hi Ray,

that works perfectly.

Thank you very much.
  
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Redirectprocess no data content
Reply #6 - May 11th, 2016 at 1:08pm
Print Post Print Post  
The reason it was working here, on some of the test systems, is I have a set of command line utility programs that contains DIR.exe. Your windows 7 machine may have something similar if it works without the cmd /c.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged