C# System.PlatformID.Unix Vs. Linux?

Aug 8, 2010

I need to make some system calls in my C# applications.Unfortunately, this behaves differently on Linux than on UNIX.Now I used to switch the Operating system at runtime like this

If Environment.OSVersion.Platform = System.PlatformID.Unix Then
' Linux/Unix '
ElseIf Environment.OSVersion.Platform = System.PlatformID.MacOSX Then

[code].....

View 1 Replies


ADVERTISEMENT

VS 2008 Extending VB Program To Linux And UNIX?

Jan 13, 2012

I have a program built on VB.NET and C# . It calls Win32 API and another APIs we made and others (WodSSH and DevExpress).Now we plan to extend our tool to run on Linux and UNIX GUI for UNIX end-users. We have doubts whether to try to import the program somehow (I heard about Mono and Wine) or build it from scratch in Java.

View 6 Replies

.NET To Monitor A Remote Linux/Unix Filesystem For Changes And Even Write To It?

Oct 19, 2011

Is there anyway in VB.NET to monitor a remote Linux/Unix filesystem for changes and even write to it? Like a cross-platform FileSystemWatcher?

View 1 Replies

Unable To Run Unix Commands To Execute Processes On A Unix Server?

Jul 6, 2011

I was recently assigned to do some research on how to approach a project. Right now we have an old program written in tcl. From this tcl program ( running on VMS client computer), we are able to run unix commands to execute processes on a unix server. This is done via tcpip. Now, we are thinking of making upgrades to this system . We are wondering if this kind of thing was possible with Visual Basic. Are we able to run a VB program on windows computer to run UNIX commands on a server? If so, what issues might be brought up. If anyone has even the briefest guideline or tip on this,

View 3 Replies

[2005] Run A Unix Script On A Unix Machine Without Using A Third Party Software

Jan 8, 2009

Is there a way to run a unix script on a unix machine with VB .NET without using a third party software like Rebex ssh?

View 4 Replies

[2008] Send Linux Console Commands To A Remote Linux Server?

Jan 23, 2009

Is there a way for my program to send Linux Console Commands to a remote Linux server?

View 4 Replies

Connect Linux Remote System And Run A Command Using .net?

Jun 13, 2011

I want connect my linux remote system using ip address and port through .net. and want run a command to run a file inside the remote system

View 5 Replies

C# :: .NET Write Text File For Unix System (Icinga Or Nagios)?

Nov 11, 2011

I want to create a file with VB.NET and I want to use this file for a Icinga or Nagios configuration.

View 1 Replies

VS 2005 System.Net.WebClient Whats The Best Way To Get Text File From Unix?

Dec 12, 2009

I need to parse a Unix text file so, I am using System.Net.WebClient to ftp into a Unix server then using the .DownloadFile() method to get the text file, but its coming in with the Unix end line ""; so is there a way to convert that to windows format while doing the DownloadFile method? I do re-read it after and fix it, I am just looking for a better way.

Or is there an alternate such as instead of a DownloadFile, and the two other steps above can I just read it into an array right off the Unix server?? If so then what method would I use?

View 4 Replies

Win32 API - Equivalent To Making System Calls Abd And Library Calls In UNIX?

May 8, 2010

What the Win32 API is? I have looked around but no where really outlines what it is. Is it basically a set of procedures, outlined by Microsoft for programmers in order to get services from the operating system? In essence is it the equivalent to making system calls abd and library calls in UNIX? And yes I now Windows makes library calls too.

View 2 Replies

PlatformID Value For Win7 64 Bit

Sep 29, 2011

Does PlatofrmID work in Win7 64bit? And if so what value does it return?

View 5 Replies

Checkign For A PlatformID (Windows 7)

Nov 22, 2010

I am trying to use a switch statement to grab the PlatformID to find the Windows Operating system. I have found out how to detect vista, but Win7 has been my issue. I did find a PlatformID chart but I am not sure if the information is accurate. This is what I found: [URL]

View 3 Replies

Getting GMT As Unix Epoch?

Mar 28, 2009

I have to convert a data (not the current date) to GMT and represent it as a Unix Epoch.This is what I'm trying - it returns something that looks correct - but I'd like to know if anyone with more experience knows if I am doing this correctly.

Friend Function GetEpoch(ByVal dDate DateInteger
Return (dDate.ToFileTimeUtc DateTime(1970,10000000

[code].....

View 1 Replies

Run A Unix Script?

Jan 12, 2008

Is it possible for vb.net to run a unix script?

If so , how to? Which namespace should I use?

View 5 Replies

Get The Unix Timestamp In VB 2008?

Sep 18, 2010

I want to know if it is possible to get the Unix Timestamp in VB 2008? I have no idea on how to get it.

(Unix timestamp is the amound of seconds passed since 1 January 1970 00:00)

View 1 Replies

Automate Ssh To Linux Box?

Sep 24, 2011

I have automate ssh to Linux box using vbs script (to log in and execute commands)

but i need to make a tool which edit the vbs values and execute it

Brief vbs script set WshShell = WScript.CreateObject("WScript.Shell") WshShell.Run "plink.exe -v -ssh ubnt@192.168.1.20 -pw ubnt -m UNIX_commands.txt" WScript.Sleep 2000 WshShell.AppActivate "192.168.1.20 - PuTTY" WshShell.SendKeys "conf term{ENTER}" as you can see it is first run plink.exe (ssh client) with specific User name & password and load specific commands to execute on Linux box from UNIX_commands.txt which located in same directory

[Code]...

View 1 Replies

VB Connecting To DB2 On Linux?

Jun 7, 2010

I can get Visual Studio 2010 Professional to connect to a DB2 UDB database but I don't see any tables. I can hand code the sql and get data returned but I want to be able to drag and drop and use the power of the Studio. I've tried OLE and ODBC connections but I'm still missing something in the set up.

View 4 Replies

VB GUI Designer For Linux?

Sep 6, 2009

I have MonoDevelop working, and so far it's been really good. The only thing that seems to be missing is the GUI designer.

View 2 Replies

Acces Unix UNC Path From Within Application?

Aug 17, 2009

For the application im writing i need to access files on a network server. I have tried different ways, but none of them seem to work.When i try using impersonation i keep getting logon failure (1326). I did try few solutions i found on the net but none seem to work.

View 1 Replies

Access Oracle (UNIX) Directory From .NET?

Oct 27, 2009

We have an Oracle 11g R2(UNIX) server. A directory was created on this UNIX box for the purpose of uploading/downloading CSV files.I need to access this directory, programmatically from VB.Net in order to search for a specific file (a log file more precisely) and then open it it programmatically in Notepad from my Vb.Net application. I should also be able to delete or copy it to my local drive.I am trying to find a VB.Net code sample that would allow me to implement this: Read/Write/Open files on an UNIX directory.

View 5 Replies

Connection To UNIX File Path?

Jun 13, 2011

I want to connect to a UNIX file path over our network and grab some .log files. Is this possible? If some do I need to do anything more than what I would do if I was opening files from a local path?

View 5 Replies

VS 2008 Connect To UNIX Server With VB?

Oct 25, 2009

Is there any possibility to develop an application using Visual Basic that connects to a unix server (using SSH) and run some commands? I will try to describe what i need : The user should enter the server adress, username and password!Than the user must enter some "filenames" and after pressing a button the application will run a command (e.g more "filename") and generates an output file with the result of his command!

View 5 Replies

.NET Connect To Linux Server?

Jun 22, 2011

I have to develop a small application that will connect to a Linux server (scp on port 22), upload a file, and then execute the file. The first thing that came to mind was to call WinSCP from my app, but the initial connection will always prompt to accept the hostkey. When calling WinSCP from the commandline you can press a key to copy the hostkey to the clipboard, and then you can use it with the -hostkey switch to connect. Any thoughts on how I might do this in VB? It would have to look like this:

Attempt to connect via WinSCP
Copy hostkey to clipboard when prompted
Attempt to connect again using hostkey

I'm just not sure about #2. I would have to send a keystroke for the letter 'C' which causes the hostkey to be copied to the clipboard.

View 2 Replies

How To Pass Commands To Linux CLI

Oct 18, 2011

I am trying to invoke a Linux machine through putty from VB.NET and to perform some operations on it.

I had invoked the Linux machine using following code:

Dim strCommand As String
Dim ret As Integer
ret = Shell("putty.exe Linux_machine_id", AppWinStyle.NormalFocus)

[Code]....

But once the Linux machine is opened its prompting for username and password.Using SendKeys i tried to send the username and password but its not passing to the Linux machine.

why username and password is passing to the Linux machine...

View 1 Replies

Porting VB Apps To OS X/Linux?

Dec 29, 2009

I've been wondering about this for a while, but is there actually any free way to port VB.net apps to OS X and Linux? I've searched the web for this and couldn't find anything much.

View 5 Replies

Run .net Windows Application In Linux?

Jun 11, 2011

can We run VB.Net windows Application (2.0 Framework) in Linux.

View 2 Replies

Call A Program From A Unix Shell Script?

Jun 11, 2012

I need to be able to kick off a vb.net program on a windows server from a unix shell script on an AIX server. What what I need to do to make this possible? I'm a newbie on the .Net side, but I was thinking, maybe make the vb.net program some sort of web service then have the unix shell script invoke that somehow

View 2 Replies

Connecting To Unix And Calling A Shell Script?

Aug 15, 2011

I wanted to connect to unix and call a shell script program from dot net application (windows application).do i need to use MS Winsock control to connect to unix or is there any other best option?

View 3 Replies

Converting Unix Time From Mssql String

Jan 17, 2011

I have recently started programming in vb.net (or trying to) I have made a application that gets some info from a mssql server. I can get the information perfectly, but one of the items called "date" i get in to my program is a date field in UNIX time. Is there a easy way to convert that into GMT time?[ code]

View 2 Replies

Microsoft Binary File From A Unix Computer?

May 5, 2009

I'm working on a program that's an update from Microsoft Basic on unix to VB .net 2008 on the PC.The files that are on the Unix are Microsoft Binary files.How do I read a binary file and then input the data into a SQL table?

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved