Calling EViews from shell?
Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt
Calling EViews from shell?
Is it possible to send arguments to EViews from the command line? If so, how do I do that? Specifically, I would like to tell EViews to execute a program file. Ideally, EViews would just run in the background and then return some output. Alternatively, EViews would just open and then run the program file. In that case, is it possible to reuse an instance of EViews or do I have to open a new instance on each call?
-
- EViews Developer
- Posts: 563
- Joined: Thu Apr 25, 2013 7:48 pm
Re: Calling EViews from shell?
Hello,
Yes, you can invoke EViews from a command prompt/shell and have it execute a program. For example,
"C:\Program Files\EViews 9\EViews9_x64.exe" C:\Users\me\Documents\foo.prg
Paths and filenames should be changed to reflect your needs, of course. Be default, EViews will open, execute the specified program, and then remain open. If you want EViews to close after the program has finished, have the program execute the "exit" command when it's done.
The syntax above creates a new instance of EViews every time. You can interact with the EViews instance normally after the program has finished, assuming the program doesn't "exit", but not via the command prompt/shell. A "reusable" instance of EViews would require something like COM automation, but that isn't a command line technique. If you're interested, you can learn about EViews COM automation here.
Yes, you can invoke EViews from a command prompt/shell and have it execute a program. For example,
"C:\Program Files\EViews 9\EViews9_x64.exe" C:\Users\me\Documents\foo.prg
Paths and filenames should be changed to reflect your needs, of course. Be default, EViews will open, execute the specified program, and then remain open. If you want EViews to close after the program has finished, have the program execute the "exit" command when it's done.
The syntax above creates a new instance of EViews every time. You can interact with the EViews instance normally after the program has finished, assuming the program doesn't "exit", but not via the command prompt/shell. A "reusable" instance of EViews would require something like COM automation, but that isn't a command line technique. If you're interested, you can learn about EViews COM automation here.
-
- EViews Developer
- Posts: 799
- Joined: Tue Sep 16, 2008 3:00 pm
- Location: Irvine, CA
Re: Calling EViews from shell?
The answer is on this page:
http://www.eviews.com/help/helpintro.ht ... asics.html
Sent from my iPhone using Tapatalk
http://www.eviews.com/help/helpintro.ht ... asics.html
Sent from my iPhone using Tapatalk
-
- Posts: 78
- Joined: Thu Jul 11, 2019 10:47 pm
Re: Calling EViews from shell?
Hi,
Is there any way to call EViews silently from shell? So that the GUI doesn't launch, but a program can be executed?
Thanks
Adam
Is there any way to call EViews silently from shell? So that the GUI doesn't launch, but a program can be executed?
Thanks
Adam
-
- EViews Developer
- Posts: 799
- Joined: Tue Sep 16, 2008 3:00 pm
- Location: Irvine, CA
-
- Posts: 78
- Joined: Thu Jul 11, 2019 10:47 pm
Re: Calling EViews from shell?
Thanks Steve - works wonderfully via CMD. Unfortunately not via R system command, this should be something I can figure out though.
Cheers.
Cheers.
Who is online
Users browsing this forum: No registered users and 33 guests