Java - Perl Script In Background?
May 26, 2010
I have a perl script i made to automatically telnet into different servers . but its interface is only command line. To make it more user friendly for general windows users , i need to make GUI for it . My idea is to make GUI in a language like VB,java ,etc and let that call perl script . my script will run in background in a command prompt and whatever the result it displays back in GUI.
Got some success. GUI in vb ,I run an instance of CMD in background ,run perl script in that .But that is wer program fails .As perl script runs in a thread for perl , i only get the output when script completes(rather say when it timeout). i need a mechanism where i can interact with the perl script , take output of script and show to user , then take input from user and so on .
View 2 Replies
ADVERTISEMENT
Jun 13, 2009
I'm trying to make a vb.net application that has got 2 textboxes, 7 radio buttons and 2 buttons(one named compile and the other 'run'). How can I load the content of a C/C++(or any programming language) file into the 1st textbox and on clicking the compile button, i should be able to show the errors or the C/C++ program in the 2nd textbox. On clicking Run, I should be able to show the output in the 2nd textbox. In short, I want to use the 2nd textbox as a terminal/console. The radio buttons are 4 selecting the language C or C++ or python or C# or java or perl or vb.R d compilers of all these languages present in .net?
View 2 Replies
Aug 10, 2009
I want to call perl EXE to process something within .NET and i need to get some results from the perl exe.
For example i am going to pass two array to perl exe and i need to return a array form perl.
View 1 Replies
Apr 19, 2010
I have created a GUI for controlling a device in VB.The VB GUI has a bunch of intelligence behind each button push to determine exactly what command need to be executed. he commands are then written to a perl file (the communication to theoard is in a perl package), and the script is executed. This works consistently for us, but has severe performance issues.he issue I have is that the underlying perl package can take up to 30 seconds to read into the perl interpreter.
View 1 Replies
Mar 25, 2011
does anyone know a good tool - convert perl script to vb.net?
View 1 Replies
Jul 16, 2010
I'm need to run a perl script from my application and detect when it's done. I plan to check if it's done with a timer so I hear I need to use WaitForSingleObject to detect it's finished
Secondly, this might be the wrong place but I'm asking anyway, I want to send the perl's output to a file so I can read it in when it's done but that part of it isn't working correctly, the exact same string typed into a cmd.exe window works correctly but the shell command still sends the output to the dos window and doesn't generate the file.
NOTE: This is just a test program, it's not how I'm going to do it in the real app.
Imports System.Runtime.InteropServices
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[Code].....
View 9 Replies
Jul 24, 2010
In perl you can write $string =~ tr/[a,e,i,o,u,y]/[A,E,I,O,U,Y]/; for example. Is it possible to achieve the same "translation" effects with VB.Net regexes? PS: I'm not searching for a way to port this very example, it's more of a curiosity question :)
View 2 Replies
Oct 5, 2011
I'm using Visual Studio 08 and Vb.Net (3.5). I want to call a perl script. This perl script should get two values (that the user wrote into input-elements in the vb.net application). Then the perl script should return one or more strings (maybe a list or an array?). How can I do this?
View 1 Replies
Feb 1, 2009
Call a perl script from vb.net with parameters
View 2 Replies
Oct 6, 2011
I am not familiar at all with perl but I am trying to convert some code over to vb.net (2010).
The bit I am stuck with is the following:
CODE:
A bit of code that uses the above data is:
CODE:
From my understanding they are something like structures or arrays in VB, would this be right?
If I am reading the code right than this:
CODE:
should equal to a two bye array of: "0x10, 0x01" - am I far off?
Would something like what I have below work? It seems a bit messy, there must be a better way to do it:
CODE:
View 1 Replies
Feb 25, 2012
I have a long string containing a bibliography, alternating between lines of paper-title/comma-separated-author-list, like the following:
Learning Programs: A Bayesian Approach
-P. Liang, M. Jordan, D. Klein
-Variational methods for a Dirichelet process
-D. Blei, M. Jordan
What I want is a list of unique authors (alphabetized by last name) and counts. In the above example it would be:
D. Blei (1)
M. Jordan (2)
D. Klein (1)
P. Liang (1)
View 2 Replies
Dec 15, 2011
i want to create an exe in vb.net by packaging few perl files along with it. when i am packaging those files i am able to hide those files by making the hide option true. but if the 'show hidden files' is selected those files will be visible. I want to lock/prevent the user from opening the perl file/code. want to know if there is any way to do it.
View 1 Replies
Feb 18, 2011
Background of form: black
background of char, bombs and shrooms: transparent
picbox behind char, bombs and shrooms is regular (marioland)
How can i fix it so the transparent parts dont see form as background but marioland as background?
View 12 Replies
May 3, 2012
I am using query from a SQLite database as the AutocompleteCustomSource for a ComboBox. Also, I want to load data in separate thread. My LoadData method works fine when called directly, but it fails when it is called from the BackgroundWorker thread. When it is called from the background thread, it throws a Specified cast is not valid exception on the csearch.AutoCompleteCustomSource.Add(hh("Taj")) line. Below is my code:
Sub LoadData()
Dim connetionString As String
Dim cnn As SQLiteConnection
[Code].....
View 4 Replies
Feb 19, 2011
what I am trying to accomplish worked with the code in the last thread I posted a while back. I still am using this code, however, I changed the window size to work better and gave it a nicer background for the title screen of my project. Now what I am working on at the moment is making a settings form that has 2 labels. One for "Default" Layout and one for "Plain" layout. When default is at start, the default label is disabled,and when plain layout is clicked, the button is disabled and default button is enabled.Basically, this is a toggle switch for default or plain where if one is enabled, the option for it is disabled and the other is enabled.My problem is that when I switch from Plain back to default, the background Image will not switch back from the plain background color of "control"Here is my code:
Public Class Settings
Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel1.LinkClicked
MiDNiGHT.BackgroundImage = Nothing[code].......
View 6 Replies
Sep 29, 2009
In VB.NET there is the WITH command that lets you omit an object name and only access the methods and properties needed. For example:
With foo
.bar()
.reset(true)
myVar = .getName()
End With
Is there any such syntax within Java?
View 5 Replies
Dec 27, 2008
existing tool which converts VB.NET Code to Java.
View 1 Replies
Jun 6, 2011
Possible Duplicate: WITH statement in Java? does anyone know if there is the With Keyword in Java?
View 4 Replies
Sep 28, 2010
I need to reference a C++ dll from my Java project. The method that I need to expose is actually written in Visual Basic. Is there any way to access the Visual Basic code in C++, so that it can eventually be accessed in the Java project?
View 6 Replies
Feb 15, 2010
I want to convert java file into vb.net files
View 2 Replies
Sep 26, 2011
`I want to encode my string using .net and pass it to a java program. I am using the same program for encryption and decryption on both the sides. But the java program and .net programs are returning different MD5 hash codes.Here are the codes for both my programs :
VB.net
md5Provider = New MD5CryptoServiceProvider()
input = UTF8Encoding.UTF8.GetBytes(sSecurityKey)
oHash = oMd5CryptoServiceProvider.ComputeHash(input)[code]....
The problem is that m.digest() from java and oHash from vb.net are different. So i cant go further with DES encryption.
View 2 Replies
Feb 6, 2011
Is there any code in vb.net or java to get ID of computer >>?? I want to write a program which could get id of computer in order to make a license of software like microsoft did ?
View 2 Replies
Apr 6, 2009
My problem is actually a bit more complicated than just how to use AES in VB.NET, since what I'm really trying to do is use AES in VB.NET from within a Java application across JACOB. But for now, what I need to focus on is the AES implementation itself.
[Code]...
View 1 Replies
Mar 19, 2009
I'm trying to compile java files in a folder that contains a batch compiler. The application starts the compiler and redirects the output to a textbox in the form.
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim mypro As New Process()
Dim myproinfo As New ProcessStartInfo(FolderBrowserDialog1.SelectedPath + "/compiler.bat")
myproinfo.UseShellExecute = False
[code].....
My compiler is like this.
@echo off
Title Compiler
"C:\Program Files\Java\jdk1.6.0_01\bin\javac.exe" *.java
pause
View 8 Replies
Mar 11, 2010
I have a 32-bit java dll which i need to call from a asp.net application on a 64-bit machine.
View 1 Replies
Jul 19, 2011
I have a bit of an issue.I have a ton of functionality written in java and have been asked to investigate how to consume it from a .net application.Can anyone point me in the right direction as I havent a clue.For some reason wcf came to mind but I am pretty certain that wont fit. AAAArrrrgggghhhhh
View 2 Replies
Aug 2, 2011
In java I would Write:
if (something != bla || something != bla){}
How is this written in visual basic?
View 3 Replies
Apr 10, 2012
This program consist of addition, subtracting,multiplyin and divide,..all my calculations here are workin right but i need help setting up the a statement which display diff instead of sum...this is saying that im gettin for example 5 -4 equals 1..but instead sayin this diff 5 4 1 ..it says sum 5 4 1 ..as u can see i does get the result but i want to replace the sum for diff.[code]...
View 2 Replies
Jun 3, 2011
How can I call Java function to VB.net window application?
View 2 Replies
May 2, 2010
I had deploy a program to call Java Web services from VB.net . Below is my code:
[code]...
after run the code, I had get soap error code 500 after soap.send(), is that anything wrong with my program ??
View 2 Replies