Enter password to a program using system exec

Hi,
I have a program that I am running using SYSTEM EXEC.VI. The VI runs ok but asks me to enter a passowrd. If I do this, the VI continues and completes the test. My question is... how can I add the password automatically using SYSTEM EXEC.VI without the user typing it in. I have tried a carridge return and then the password (in the comand line) or even typing the password into the STANDARD INPUT and have even tried creating a batch file but no luck
regards
Chris
Attachments:
1.jpg ‏141 KB
2.jpg ‏57 KB

Maybe this will provide a clue:
http://superuser.com/questions/44106/is-there-a-way-to-auto-login-in-putty-with-a-password

Similar Messages

  • Use System Exec IrfanView to open JPEG file

    I am trying to use System Exec to call Irfanview to open a Jpeg file, and the following error occurs:
    "Error 2 occurred at System Exec.vi. Command was "iview32 c:\test3.jpg /hide=3 /pos=(30,30)"
    "LabVIEW: Memory is full."
    "NI-488: No Listeners on the GPIP"
    I then tried to add "cmd /c" in front of the command but the DOS windows just flash open and close and then nothing happen.
    I have no problem opening the jpeg in DOS command window.
    Anyone can help?
    Solved!
    Go to Solution.

    you do not need to specify the full path as long as you have the path in your path variable
    I think the problem may be that you are using the wrong program name I think it is i_view32 not iview32
    - James
    Using LV 2012 on Windows 7 64 bit

  • Calling a VI which uses "system exec.vi" with LabVIEW run-time engine as adapter

    Hi,
    My TestStand sequence calls a VI which includes a call to "system exec.vi". When I try to load it in TestStand and if LabVIEW adapter is set to run-time engine, I get an error message "Unable to load Vi...". If I switch the adapter to "Development system", then it works fine.
    Is there any way to use "system exec.vi" in a VI which is called in TestStand with LabVIEW run-time ?
    Thanks,
    Alex
    Solved!
    Go to Solution.

    Hi Alex,
    In you case, you are getting a -18002 error.
    The reason is explained in the following link:
    -18002 Errors in TestStand
    http://digital.ni.com/public.nsf/allkb/D82FEAF0B4BA293A862575710053E252?OpenDocument
    Please have a look at the 2nd reason. This is your case.
    Hope it helps,
    Regrads
    Julien De Freitas / Applications Engineer / Certified LabVIEW Developer (CLD)
    National Instruments Switzerland

  • Sand Box has stopped working error when using System Exec.vi with wait until completion is true

    I get the following error message in Windows 7 "Sand Box has stopped working" when using System Exec.vi with wait until completion set to true, if I set it to false there is no error message.

    Hello JJVerdi
    mmm well System Exec.vi simulates a DOS command window, can you run the sandbox from the cmd window using the same commands without any errors? 
    you may take a look to this KB, it may be related to your issue:
    http://digital.ni.com/public.nsf/websearch/2393462​BD57B854186256C4F007B706A?OpenDocument
    Regards
    Mart G

  • I am trying to use system exec vi to opens system 32 cmd.exec to do a net send over a windows nt network

    Is there a way to easily send strings over a local nt network, I am trying to use the net send command in windows nt cmd.exec using the system ecec vi, if anyone has any idea how to do this or more info on using the system exec vi in labview 6i. any info would be a big help
    thank you
    dale

    Yes it worked fine thank you, as long as I have your attention I noticed on one of your replies to a different question that you had written a vi that sends e-mail I was wondering if you could post me some info on this or any other communication vi's. just to let you know what I am doing " I am a summer student for electronics, and I have been given labview to write a program that monitors analog and digital channels and alerts a user if any "alarms vary" I am trying to notify the user of these changes by network, email, and pager. thanks to your last answer I have the network idea working.."
    thanks for your help thus far it makes learning these labview apllcations easier
    Dale Walker

  • How to hide command prompt window when using system exec

    Hello, I'm using the system exec VI to do some file transfers for a LabVIEW application.  I'm worried that the black command prompt window with white scrolling text that pops up when system exec is called might frighten the non-tech savy users of this LabVIEW application.  Is there a way to hide the command prompt window?
    Solved!
    Go to Solution.

    Wire a TRUE to the Run Minimized input.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Run a program with system exec.vi

    hi
    I've got a problem with system exec.
    When I launch a simple program like :  c:\windows\notepad.exe it works very well.
    But when I launch a program with parameters, it doesn't.
    here is the command line:   c:\bmd.exe a.bmd a.txt ffffffff ffffffff  
    When I put this command line in a cmd windows it works perfectly. It don't understand...
    Any idea?
    Attachments:
    Sans titre1.JPG ‏22 KB

    Hi Julesjay,
    I found out that if the command string didn't include the path of the executable (start) the program would fail (at least with matlab executables) So make sure the path of the exe is included in the command string.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • How use System exec.vi...

    hi,
    i want to run a shortcut from a labview application. i know the command line to do this from MS DOS but i don't understand how works System exec.vi.
    Could you help me giving some example?
    Thank you

    Use the command "start <path to shortcut>", or "cmd <path to shortcut>", as explained in this document.
    Message Edited by smercurio_fc on 06-08-2007 09:46 AM

  • Problems running program using Runtime.exec()

    Hello everyone. I have a quick problem that perhaps someone can help me with... I'm trying to write a frontend for a command line program. I've found plenty of examples for using exec() to launch this program but I can't quite get the effect that I desire. The program itself launches it's own window (using a graphics library called SDL) but the user interacts with the program through the command prompt.
    The problem that I'm having is that my InputStream thread does not seem to execute until I close the SDL window. I've tried about 10 different combinations of threading this application but nothing seems to work.
    Below I've attached some sample code that I found here on the Sun site... The code does as I described before, the InputStream does not display any text until I close the SDL window.
    Can anyone help out?
    import java.io.*;
    // class StreamGobbler omitted for brevity
    class StreamGobbler extends Thread
    InputStream is;
    String type;
    OutputStream os;
    StreamGobbler(InputStream is, String type)
    this(is, type, null);
    StreamGobbler(InputStream is, String type, OutputStream redirect)
    this.is = is;
    this.type = type;
    this.os = redirect;
    public void run()
    try
    PrintWriter pw = null;
    if (os != null)
    pw = new PrintWriter(os);
    InputStreamReader isr = new InputStreamReader(is);
    BufferedReader br = new BufferedReader(isr);
    String line=null;
    while ( (line = br.readLine()) != null)
    if (pw != null)
    pw.println(line);
    System.out.println(type + ">" + line);
    if (pw != null)
    pw.flush();
    } catch (IOException ioe)
    ioe.printStackTrace();
    public class TestExec
    public static void main(String args[])
    if (args.length < 1)
    System.out.println("USAGE: java TestExec \"cmd\"");
    System.exit(1);
    try
    String cmd = args[0];
    Runtime rt = Runtime.getRuntime();
    Process proc = rt.exec(cmd);
    // any error message?
    StreamGobbler errorGobbler = new
    StreamGobbler(proc.getErrorStream(), "ERR");
    // any output?
    StreamGobbler outputGobbler = new
    StreamGobbler(proc.getInputStream(), "OUT");
    // kick them off
    errorGobbler.start();
    outputGobbler.start();
    // any error???
    int exitVal = proc.waitFor();
    System.out.println("ExitValue: " + exitVal);
    } catch (Throwable t)
    t.printStackTrace();

    I'm pretty sure, because if you run the application without any parameters you don't get the SDL window, you just get a list of possible command line switches, that part works fine... It just seems that when the SDL window is open, the thread won't grab and display the individual lines until that window is closed, which will not work for my purposes...

  • Running Oracle Reports via a client using system.exec call from war file

    Hi all,
    I am trying to deploy a war file application to a J2EE 10.1.3 application server. The deployment successfully completes. However testing the application fails.
    When testing, the application reveals that calling a Oracle Reports 6i client (using a cmd line exec) from the war file returns application errors. The errors we get from executing the call below (using debug statements), creates this error:
    OperatingSystemCmd: cmd = D:\Oracle\Dev6i\BIN\rwcli60 MODULE="CLTMLST" USERID="<userid>/<pwd>@<db>" DESTYPE="FILE" DESFORMAT="PDF" DESNAME="<path>\<pdf filename>.PDF" PARAMFORM="NO" BACKGROUND="NO" SERVER="r6i.world" TOLERANCE=0 ADVCODE="<param>"
    OperatingSystemCmd: Command returned 3
    WrsRunReport: Done executing report
    WrsRunReport: Error running report Return code 3
    Error on Screen is REP-0178 : Cannot connect to reports service.
    However running the same command from a operating system command prompt in windows reveals that the command runs successfully.
    Is there any particular OC4J J2EE settings that are required to get this statement to run properly?
    Any help is most appreciative.
    Cheers
    Rodney

    Hi All,
    From much research and experimenting to get this to work I looked at the java.lang.Runtime class and noticed that seperate processes can be started using this very important Java class.
    The first thing that I experimented with was in regards to seeing the environment OC4J runs against. Using the java.lang.Runtime class I executed a standard "cmd /c set" command in my Windows environment, and noticed that Oracle Application Server uses its own environment and not a standard windows login environment for its OC4J containers. Apache Tomcat on the other hand uses the standard user login environment.
    So to get the application to be able to work properly we needed to override the particular environment the process needed to be able to get it to work. There is a exec command which allows you to override completely the environment for a process you would like to run. This method call does not in any way shape or form change the standard OC4J environment. This was done by executing the same "set" but with the overriden environment. Note that no environment variables from the OC4J container are carried into this new environment.
    Cheers
    Rodney

  • How do i open and control other programs using labview?

    I'm presently trying to use labview to try to open and operate another program,but having much difficulty.The external program i'm using is called the Foundation program.
    This Foundation program will use VHDL programming to create a virtual chip and then synthesising it.This program will then simulate the output of this VHDL program to verify that it is working as desired.Then the last stage is to download the whole VHDL program into a FPGA chip using a xilinx cable.
    All this need to be done using a labview program - to open the Foundation program and then extract the saved file and then to execute the download command to cause the VHDL program to be downloaded onto the FPGA chip.How do i go
    about doing all this?What is the first step i must do.Also all this have to be done thru networking..looks like its too difficult..I really need help.
    grays

    I haven't done VHDL so pardon my ignorance.
    LabVIEW can call external DLL via "Call Library Function" or C programs via "Code Interface Node", both located in "Advanced" function.
    If your program is a DOS program, use "System Exec.vi" found in "Communication" function. If you need to format your DOS command prior to sending it, use the "Format Into String" function in "String" function palette.
    Lastly, if you're trying to extract data, assuming it is text, use "File I/O" functions. If the data is binary, use "File I/O -> Binary File VIs".
    Hope that answers most of your questions.
    Shan Pin Koh

  • Creating a delay in labview until a c program completes in system exec.vi without using "wait until completeion"

    I want to run two related C programs. The second one reads a text file that the first created. So I need to wait until the first is completed.
    I use "system exec.vi" and I know I can set "wait until completeion" to true, but this way I won't see the screen and the C program announcments. Someone has an idea?

    Hi Dror,
    my idea: just wait for the text file created by the first C program. Check for the presence of this file (maybe using 'list directory') or check for the size of this file...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • System Exec use all resources system if "wait until completion" is true !

    Hello,
    I use the function "System Exe" since a long time to launch various executables since Labview.
    The " waint until completion " boolean is true, because I have to wait the end of the external executable to continue.
    Big problem: the function " System Exec " use all resources system, by waiting for the end of the external program.
    Is it a bug of this function ?
    In my example, "System Exec" launches only the notepad (LV 8.2 on XP)
    Thank you for your suggestions.
    AC
    AC
    Attachments:
    Process.jpg ‏86 KB
    Bug system exec.vi ‏17 KB

    Thanks to both for your speed.
    In fact I had simplified my vi to target the problem.
    I use System Exec to launch another executable, made possibly with labview, but with passage of parameter. (Ex: - " / string:init ").
    In the literature Labview it was made with the method cmd / x / c start by putting twice the path of the executable.
    In this method a waiting time in the recent system exec function was effectively missing.
    But effectively, today, it is enough: "c:\myexe.exe" - " / string.init " to launch and to pass a parameter.
    You have both reason and I thank you sincérement.
    Very cordially.
    Sorry for my English....
    AC
    AC

  • How to close the window openned by System Exec VI automatica​lly?

    Hello,
    I am using System Exec VI to lauch an exe file built from a LabVIEW program. When running System Exec VI, the window of exe file pop out and stays there even after all tasks are completed. I have to close it every time manually. Anyone here know how to close the exe file window automatically when it's done?
    Thanks,
    Jean
    Message Edited by Jean_CLD on 03-25-2010 11:25 AM
    Message Edited by Jean_CLD on 03-25-2010 11:29 AM
    Solved!
    Go to Solution.

    If I understand the question correctly you need to add an invoke node at the end of your application to exit. Depending on the whether it is running as a stand alone application or within LabVIEW it will either exit or stop execution. I've attached the VI I use in my applications.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot
    Attachments:
    Exit application.vi ‏13 KB

  • Launch expect from System Exec.vi

    I tried using System Exec.vi to run some expect scripts but got an error message saying "tclsh80 generated errors and will be closed
    by windows. You will need to restart the program".
    I use window 2000 and tclsh80 with expect-5.21.
    Under the command line in System Exec.vi window. I put "path\tclsh80.exe" "path\test1.tcl".
    Thanks in advance.
    -Kevin

    Hi Kevin -
    As the error message indicates, it seems to be a problem with your TCL script. Can you run this guy independently of your LabVIEW program? Can you run any TCL scripts? I would try to trim down the current script to its simplest form and work your way back. There are several posts on DevExchange (exchange.ni.com) about using TCL & LabVIEW together,
    you might want to follow their suggestions. There is nothing incorrect about your approach, System Exec literally hands over operation directly to the OS.
    good luck
    ben schulte
    national instruments

Maybe you are looking for

  • PL/SQL EO design issue - OAF

    Hi everyone, A PL/SQL EO should create per business function unlike the Java EOs where we create one EO per database object. Every Java/PLSQL EO should be mapped to some entity. As PLSQL EO is not specific to particular entity (may involves DML opera

  • NegativeArraySizeException in Sender Communication Channel

    Hello PI world I have an error in a communication channel that I don't understand : The interface is a simple mapping from a FTP server to a SAP IDoc. The files are archived in the SAP PI server using the CC configuration : CC Type : File FTP Sender

  • Lightweight alternative to Declarative Components?

    Hi, Is there a simpler, lighter way to extract part of an ADF page into a re-usable tag that can be used instead of the Declarative Components feature? In my application, I have a table which displays some data from a VO. Some columns are links, and

  • Setting priority on Unit Tests - is it possible?

    Is it possible to set a priority level (low, medium, high) to the units within a test package. Not on the test cases, but when the test plan is generated the option "with transaction" is selected. And we are testing the unit/transaction can you set a

  • How to catch the IllegalComponentStateException?

    I have a JTable which has 3 columns, only the first column is editable. I got the following exception sometimes when I click the mouse on the column to bring up a popupMenu. There is a post on Aug 19 talked about this problem http://forum.java.sun.co