Jump to content

Using System Exec.vi for connecting a Panel on Linux


Recommended Posts

Hi there,

I am facing a problem.

I need to login to a Panel (running Linux on it) using plink.

I am using the "System Exec.vi" to open up a secure port using plink and getting the needed information, for example to list the "files" in one of the directory i would issue the command

plink 10.47.101.22

cd /opt/MAP/etc/db/

ls -al

exit

exit

And i am getting the response without any problems.(a new shell gets opened, and closes when the job is over)

Now the problem is there is a "database" in one of the folder and i would like to view/modify the same using "msql" commands. So I log in to the panel, go to the location where the database exists and issue the commands (this how i work manually)

But if i use LV and the System exec.vi to issue the command as shown below, A new "shell" opens (like u are opening a command prompt window) and it does not comes out. I have to manually go close this shell to gain the control back.

plink 10.47.101.22

cd /opt/MAP/etc/db/

msql -d Users.bdb -o guru.txt (to create text file called 'guru.txt)

select * from UserTable ;

.q

exit

exit

Now is there any solution to avoid this so that my vi can continue executing without any issues?

Is there any other tool or something is available to perform such operation?

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.