Solved

Visual Foxpro - Linux & Mac

Posted on 2010-08-13
4
780 Views
Last Modified: 2012-05-10
Hi All,

I'm just wondering to know if VFP has any built-in class to access Linux and MAC Operating Systems to execute some maintenance tasks from Windows OS?

If no, are there any class/function available to accomplish this.

The primary goal is to access Linux and Mac from Windows Operating Systems and execute a few commands.

If not VFP then any other language?

Thanks!
SP
0
Comment
Question by:Nirmal Sharma
  • 2
4 Comments
 
LVL 14

Assisted Solution

by:tusharkanvinde
tusharkanvinde earned 100 total points
ID: 33435525
You could get a telnet activex and login and execute any linux shell command via vfp.
0
 
LVL 29

Expert Comment

by:Olaf Doschke
ID: 33435788
Yes, telnet or ssh can be started and automated.

ssh ${remote_machine} -l ${user} -i ${ssh_key} ${remote_command}

with openssh within Cygwin for example.

Or with PuTTY:

plink ${remote_machine} ${remote_command}

If you can write files to the linux machine let that be shell scripts and the remote command you execute via ssh would simply be the start of such shell scripts.

As Mac is BSD based the same should apply, shell scripts you want to execute may vary though and be mac specific.

Bye, Olaf.
0
 
LVL 35

Author Comment

by:Nirmal Sharma
ID: 33435824
Thanks guys for your responses!

How does it differ from Windows SFU? Can Windows SFU be used in place of ssh and telnet or they are part of it?

Are SSH or putty or Cigwan freeware tools can could be used in production without buying licenses?

The commands you explained are accessing a Linux or Mac OS from Windows? how about writing an agent for Linux and Mac OS? can this be done using VFP?

Thanks!
SP

0
 
LVL 29

Accepted Solution

by:
Olaf Doschke earned 400 total points
ID: 33440553
Cygwin is about the same as SFU, so you may use SFU too. Nevertheless I'm not an expert on Linux/Unix or BSD/Mac OSX.

An agent for Linux and Mac OSX? Well, depends what you mean by this. Foxpro itself only running on Windows, automaating ssh or telnet means you automate a remote connection/session to a linux system or BSD perhaps. This automation of the ssh will then run on Windows only, but automate remote Linux or BSD clients. But you can't make an agent for Linux automating Windows this way, because VFP exe doesn't run on Linux and ssh is secure shell, meaning a linux shell, not a windows shell.

Bye, Olaf.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Visual FoxPro (short VFP) is a programming language with it’s own IDE and database, ranking somewhat between Access and VB.NET + SQL Server (Express). Product Description: http://msdn.microsoft.com/en-us/vfoxpro/default.aspx (http://msd…
Often, people trade privacy and security for convenience. However in today's concrete jungle, this is an extremely foolish decision considering the vast amount of technologies being used against consumer interest. First off, I won't waste any time e…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now