Need help to convert GUI to command line

Hi Guys ,
Need some help with respect to scripting
I am working on a Unix platform(sun), where in I am asked to invoke table menu via command line which has lots of option like STATUS, REPORT ….
It goes like this
After login in to unix box , I am entering “yct”
It brings me a table with lot of option , I need to scroll down and then select “Report “ which display the report
Is it possible to for me to convert this entire action in to a single unix commad or can i call it via script. 

Actually WIndows NT has always run Unix (Posix) which was the original Linux before Linux.  Posix used to come on the CD/Disk set.  MS eventually dropped Posix from the box.  Now we just load almost any version Linux into a VM.
I am surprised at how many new young users think that Unix is a Microsoft product. THey think theonly competitor is Apple so Unix must be Microsoft. Funny thing that Mac is Unix. OS/X was named for Jobs advanced version of Unix called "neXt" or "X".
The board bought it but wouldn't allow the name.
The problem that jobs solved with Unix was getting rid of X-Windows in favor of the Mac Windows API on Unix.   Mac API is very close to the WIndows API.  They share the same philosophy.   X-Windows is completely backwards and very
difficult to design with.
It is interesting that in Unix the users question has an answer evry much like a PowerShell solution.  We would pipe the data to a formatter which would generate a table (Format-Table) or a list (Format-List).
I no longer remember the commands to convert a data stream or data file into a report. 
cat?  grep? list? mtable?
¯\_(ツ)_/¯

Similar Messages

  • I need help in converting a pdf to a fillable form in my adobe

    I need help in converting a pdf to a fillable form in my adobe

    "Adobe" is a company. If you mean "Adobe Reader" then you can't (at least not easily). You need Adobe Acrobat for that.

  • Need help in converting numbers to Italian text

    Need help in converting numbers to text in Italian language. I want to knw is there any method other than SE63 to translate these text in one shot. I have tried with LSMW also (as the sheet is in XLS format ).Plz reply if anyone is aware of this ..

    hi,
    chk this code.
    CALL FUNCTION 'SPELL_AMOUNT'
    EXPORTING
    amount = amount
    currency = 'EUR'
    filler = ' '
    language = 'E'  => give the language as italian
    IMPORTING
    in_words = amountrs.
    rgds
    anver
    pls mark all hlpful answers

  • Need help in converting date format

    Hi,
    Need help in converting date format from 'DD-MON-YYYY' to 'YYYY-MM-DD' in an .rtf template as I believe xml publisher supports the date format as 'YYYY-MM-DD' only.
    Thanks,
    Raj.

    I got the same problem, anyone know how to solve this problem? I allready found some date functions on http://blogs.oracle.com/xmlpublisher/2008/09/date_functions.html . I also tried <?xdoxslt:month_name(xdoxslt:get_month(xdofx:substr(NEED_BY_DATE, 4,3)), $_XDOLOCALE), 0, 'nl-NL')?>, but then it returns a namespace error (Caused by: oracle.xdo.parser.v2.XPathException: Namespace prefix 'xdofx' used but not declared.). Anyone know how to fix this?
    Edited by: user11165753 on 7-dec-2009 23:50

  • DNG converter 4.5, command line broken

    Hi,
    The command line feature of the DNG converter appears to be broken on the latest version (4.5).
    Version 4.4.1 still functions OK...
    Anyone got a clue?
    Greetings,
    Auke

    Yes there is a problem with 4.5, I is using it togheter with Downloader Pro and have recieved this from the developer:
    It appears to be a bug in Adobe's DNG Converter: the -o command line option appears to be broken. This document lists the command line options: http://www.adobe.com/products/dng/pd...ommandline.pdf
    If you type in the same command line options as DLPro's plug-in is using in a "Command Prompt" window Adobe's DNG Converter fails to create the DNG file using the pathname specified using the -o option. As far as I can see -o works if the output filename is specified but fails if a full pathname including the directory is used.
    Unfortunately there isn't much I can do about this as the problem is caused by a bug in Adobe's software.
    See the full forum messages on:
    http://www.breezesys.com/forum/showthread.php?t=2874
    br,
    Bo

  • Need help to convert SQL MSSQL statement to work with PL in ORACLE

    Hi All,
    I have the trigger below and it worked on MSSQL server for windown and
    I really need your help to convert this trigger to work on PL/ORACLE:
    create trigger deleteLD
         on tablea for delete
    as
    set nocount on
    begin
         declare @tablename varchar(100)
         declare @dropSql varchar(50)
         select @tablename= dataset from deleted
         set @tablename = 'LD_' + @tablename
         set @tablename = @tablename + 'UTMSTATS'
         if exists (select * from sysobjects where name = @tablename)
         begin
              set @tablename = 'drop table ' + @tablename
              EXEC (@tablename)
         end
    end
    GO
    Your help is greatly appreciated.
    Thanks,
    JP

    not sure if this is something that you want:
    Create Or Replace Trigger deleteLD
      Before Delete on tablea
    Declare
      vCtr          number := 0;
    Begin
    select count(*)
       into vCtr
       from all_tables
      where table_name = :new.tablename;
    if vCtr > 0 then
       dbms_utility.exec_ddl_statement('drop table '||:new.table_name);
    end if;
    End;note: not tested

  • I need help to convert hours,minutes and seconds to seconds.

    Hi, I need help with the code on how to convert the hours,minutes and seconds to seconds. I don't know which formula to use so that I can get the results in total number of seconds. Thanks.

    Jos ("when in doubt: parenthesize correctly")Bracist.You're more right than you'd known: last week I climbed over a safety
    fence (which I wasn't supposed to do of course) to adjust the position
    of an optical measurement device we installed in a huge production
    machine in a factory. I stepped on some sort of hose; the end of that
    hose broke loose and hit me straight in the middle of my lower jaw. My
    front teeth feel wiggly now and my molars on the left of my lower jaw are
    not what they used to be. This Wednesday I get that all fixed at some
    dental clinic. Keep your fingers crossed because me+dentists == war.
    My tongue continuously keeps on reporting craters and disaster ;-)
    Jos, how's it going? Besides a possible loss of some teeth, I'm fine ;-)
    My Spring/Hibernate journey continues. I'm trying out Hibernate 3.2
    annotations and the Ant tools. So far, so good.Good to hear. At the moment I'm putting my teeth (sic) in that darn snmp
    stuff which simply refuses to work the way I want it and besides that I'm
    heavily involved in some of that SAP stuff. Spring is not in the vicinity for
    me in the next couple of months sadly enough.
    kind regards,
    Jos

  • I need help to convert photos in the .swf format to a format that will open on iOS

    I need help converting photos in the .swf format to a format that will work on my Mac.  Thanks

    SWF is a Flash file that should be able to be opened with your web browser on your Mac. Probably not on iOS though.
    You will likely need to find the source file for the application that created the SWF and the image will be in that. You could then export/extract the image and have it as a stand alone file.
    It does look like there are applications that can do what you are looking for though: https://www.google.com/search?q=SWF+to+JPG

  • Need help with complex column creation command

    Hello, all
    I need help with a complex column creation command and SQL anywhere help is not sufficient for it.
    Here is the situation:
    I need to write a generic DDL "alter table" command, which can add/modify columns without knowing in advance if they already exist in the destination table.
    Is there a command, which looks like:
    alter table "table1" add (on existing modify) column1 <datatype> <default> ?
    Thank you,
    Arcady

    Hi.
    I don't think this is supported in alter table command. But you can code that inside an if statement which queries systables & syscolumns. Your code should be something like that:
    if (select count(*) from sysobjects, syscolumns where sysobjects.id = syscolumns.id and sysobjects.name = 'some_table' and syscolumns.name = 'some_column') < 1
    begin
        alter table some_table add some_column numeric(12) not null
    end
    This is an example..
    Andreas.

  • I need help to convert a string to date and time

    Good aft,
    1.How can i get a date from the user input thro' Frames?
    2.How to parse it to the date object(I need to include java.util.Date but for the database i need to include java.sql.*,if i do so, i have error as
    found:java.util.Date
    Required:java.sql.Date)
    3.How to insert into the database
    The same i need help to insert time into database?
    I need solution and explanation...
    Reply me immediately...
    If u send me the code, its better to me.

    Hello,
    The best way is to use the HEX to decimal coversion VI in the string pallette. Then, write this decimal directly to your chart. If you are doing it a point at a time put it into a while loop.
    Doug

  • Need help in converting DAQ to DAQmx

    Hi,
    I've struggled with coverting traditional DAQ to DAQmx for two weeks. I really need help from someone.
    As you can see the picture below, I've tried to replace the old VI's with new ones. But, it doesn't work. Of course, the VI below is just a part of my VI. VI's after case structure are inside of while loop.
    Could you please give me thought that why it doesn't work?
    FYI: The strange thing about it is that it runs without any error messege, but there is no actual output (values on the graph, data in arrays, etc).  
    Thanks in advance.
    Best,
    Jay
    Solved!
    Go to Solution.
    Attachments:
    Untitled 1.vi ‏74 KB

    Hi Jay,
    Assuming that the Traditional DAQ and DAQmx code are screenshots from separate VIs, I believe that the following parameter of the read functions in each driver would account for the different behavior that you are seeing (you have both set to -1):
    Traditional DAQ:
     DAQmx:
    So, when you give DAQmx Read a -1 for "number of samples per channel" when running a Continuous task, the effect is that it will return whatever data is available at the time DAQmx Read is called.  In your case this is immediately after the task is started so there very well could be 0 samples available in the buffer.  I'd imagine that you would see data if you change the value of this parameter from -1 to the actual number of samples that you want to read.
    Having said this, if you want to acquire continuously you should call DAQmx Read from inside a loop.  I agree with the others that you should take a look at the DAQmx shipping examples to help get started, you will probably find something very close to what you want to do.  You can find the examples at:
    Help >> Find Examples... >> Hardware Input and Output >> DAQmx
    Thanks for posting, I hope this helps!
    -John
    John Passiak

  • Loader (Need help to convert from AS3 to AS2)

    Since I know this code works fine and that I use it into one of my AS3 flash, I need it in one of my AS2 flash and I don't know how to adapt it. I've searched in over 100 threads and I can't find something similar... Thanks to help me get it to work in AS2! Since I need it in AS2, I thought it would be the right place to post it.
    I posted all the loading process code, but I would need help mostly with the Loader part. How to do it in AS2? Thanks!
    var img = 0;
    var image_total = 0;
    var myImages_array:Array = new Array();
    var myBitmaps_array:Array = new Array();
    function Init();
    // Images urls are loaded into an array before this call
    LoadImage();
    function LoadImage()
        if (img < myImages_array.length) // img is the current image index and myImages_array is my array of URLs
    // I need help with this part please
            var loader:Loader = new Loader();
    // returns the image full path and load it
            loader.load(new URLRequest(my_site_url + myImages_array[img]));
            loader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);
        else
            if (count == 0)
    // When everything's loaded, I'll start loading my Bitmaps into a small slideshow
                count += 1;
                init_slideshow();
    function imageLoaded(e:Event):void
        var image:Bitmap = e.target.content;
    // Bitmap manipulation here (removed)
        image_total = myBitmaps_array.push(image);
        if (img < myImages_array.length)
            img += 1;
    // Call next image
            LoadImage();
    function init_slideshow():void
    // Reserts the current index for the first one
        img = 0;
    // Start the slideshow since everything's loaded
        animate_slideshow();

    If you look at the Flash help documentation for the addListener metod of the MovieClipLoader class, there is an erxample there that you should hopefully be able to work from.  It will be better if you get your stuff coded into AS2 before you pursue more help with it.  IT is difficult to tell you how to fix something if you don't show what you are using.

  • Need help regarding converting text to Lines and Arcs.

    In my program i have text.Lets say the text is JAVA.
    Now i need to group that text(JAVA) in the form of line and arcs.
    Its like organizing lines and arcs and make it looks like a text(JAVA).
    Can we have such a possibilities to do that?
    Please help regarding this!!
    Thanks in Advance.
    Boopathy.

    Have a look at TextLayout class (http://java.sun.com/javase/6/docs/api/java/awt/font/TextLayout.html)
    Graphics2D g = ...;
    Point2D loc = ...;
    Font font = Font.getFont("Helvetica-bold-italic");
    FontRenderContext frc = g.getFontRenderContext();
    TextLayout layout = new TextLayout("This is a string", font, frc);
    Shape shape = layout.getOutline(null);
    Edited by: AlexeyUshakov on Sep 29, 2008 8:46 AM

  • Need help..anyone GUI Interfaces

    http://forum.java.sun.com/thread.jsp?forum=31&thread=472147&tstart=0&trange=15
    Can someone please help me with this program..I'm new to java and I don't understand GUI's. I read everything inside and out in my text book and still don't get how to convert my program into a gui interface...please help.

    Sorry i accidently posted twice...
    But here is my topic incase the link did not work. Thanks! Really desperate!
    Develop a Java application that will determine if a department store customer has exceeded the credit limit on a charge account. For each customer, the following facts are available:
    a) Account Balance
    b) Balance at the beginning of the month
    c) Total of all items charged by this customer this month
    d) Total of all credits applied to the customer&#8217;s account this month
    e) Allowed credit limit
    This program should input each of these facts from input dialogs as integers, calculate the new balance, display the new balance and determine if the new balance exceeds the customer&#8217;s credit limit. For those customers whose credit limit is exceeded, the program should display the message, &#8220;Credit limit exceeded.&#8221;
    Here is the program I wrote : (for the above criteria)
    // Credit.java
    // Program monitors accounts
    import java.awt.*;
    import javax.swing.JOptionPane;
    public class Credit {
    public static void main( String args[] )
    String inputString;
    int account, newBalance,
    oldBalance, credits, creditLimit, charges;
    inputString =
    JOptionPane.showInputDialog( "Enter Account (-1 to quit):" );
    while ( ( account = Integer.parseInt( inputString ) ) != -1 ) {
    inputString =
    JOptionPane.showInputDialog( "Enter Balance: " );
    oldBalance = Integer.parseInt( inputString );
    inputString =
    JOptionPane.showInputDialog( "Enter Charges: " );
    charges = Integer.parseInt( inputString );
    inputString =
    JOptionPane.showInputDialog( "Enter Credits: " );
    credits = Integer.parseInt( inputString );
    inputString =
    JOptionPane.showInputDialog( "Enter Credit Limit: " );
    creditLimit = Integer.parseInt( inputString );
    newBalance = oldBalance + charges - credits;
    String resultsString, creditStatusString;
    resultsString = "New balance is " + newBalance;
    if ( newBalance > creditLimit )
    creditStatusString = "CREDIT LIMIT EXCEEDED";
    else
    creditStatusString = "Credit Report";
    JOptionPane.showMessageDialog(
    null, resultsString,
    creditStatusString,
    JOptionPane.INFORMATION_MESSAGE );
    inputString =
    JOptionPane.showInputDialog( "Enter Account (-1 to quit):" );
    System.exit( 0 );
    AND I NEED TO MODIFY IT TO DO THE FOLLWOING: (I'M A NEWB AND IT'S TAKEN ME FOREVER JUST TO DO THE ABOVE..PLEASE ANY HELP WOULD BE GREAT!!
    Expand the above program.
    1) Design an appropriate GUI for input. You cannot use dialog boxes. Design functional window(s) from scratch. State your conditions in the boxed comment at the top of the class. Input will need a transaction date also for the CustomerHistory class.
    2) Add a customer # ( a unique identifier)
    3) Besides your GUI, you will want 2 other classes: Customer and CustomerHistory. CustomerHistory will serve as a mock database.
    4) CustomerHistory will hold the previous balance & allowed credit limit plus any credit violation history. Your CustomerHistory violations must be an array, so that it could be readily expandable.
    5) Some step-up is necessary &#8211; chose your own approach and document.
    6) Then run your system enough times to show the response when a customer exceeds THREE &#8216;over credit&#8217; limits. CustomerHistory violations should be printed out, as well as, our choice of a &#8216;dunning notice&#8217;. It cannot be the same as a simple one time exceeds limit. Also show a normal customer run. Prove to me your solution works!
    7) Draw the UML diagram of your interconnecting classes.

  • Need help with a gui

    Here's my code:
    import java.awt.Dimension;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JOptionPane;
    import javax.swing.JPanel;
    import javax.swing.JPasswordField;
    import javax.swing.JTextField;
    public class xScriptGUI extends JPanel {
         private JLabel component1;
         private JLabel component2;
         private static JTextField component3;
         private static JPasswordField component4;
         private JButton component5;
         static String authUsername;
         static String authPassword;
         public xScriptGUI() {
              // construct components
              component1 = new JLabel("Username:");
              component2 = new JLabel("Password:");
              component3 = new JTextField(5);
              component4 = new JPasswordField(5);
              component5 = new JButton("Login");
              // adjust size and set layout
              setPreferredSize(new Dimension(234, 132));
              setLayout(null);
              // add components
              add(component1);
              add(component2);
              add(component3);
              add(component4);
              add(component5);
              // set component bounds (only needed by Absolute Positioning)
              component1.setBounds(25, 20, 100, 25);
              component2.setBounds(25, 50, 100, 25);
              component3.setBounds(95, 20, 100, 25);
              component4.setBounds(95, 50, 100, 25);
              component5.setBounds(65, 85, 100, 25);
         public static void main(String[] args) {
              JFrame frame = new JFrame("xScript Auth");
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.getContentPane().add(new xScriptGUI());
              frame.pack();
              frame.setVisible(true);
    }When Component5 is clicked, i would like it to do this:
              authUsername = component3.getText();
              authPassword = component4.getText();
              JOptionPane.showMessageDialog(frame, authUsername);
              JOptionPane.showMessageDialog(frame, authPassword);COuld you implement this into my script, as i'm having lots of difficulties.
    TIA,
    Chris

    Could you help me with this code, too?
    import java.awt.Dimension;
    import java.awt.event.*;
    import java.net.*;
    import java.io.*;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JOptionPane;
    import javax.swing.JPanel;
    import javax.swing.JPasswordField;
    import javax.swing.JTextField;
    public class xScriptGUI extends JPanel implements ActionListener {
      private JLabel component1;
      private JLabel component2;
      private static JTextField component3;
      private static JPasswordField component4;
      private JButton component5;
      static String authUsername;
      static String authPassword;
      public xScriptGUI() {
        // construct components
        component1 = new JLabel("Username:");
        component2 = new JLabel("Password:");
        component3 = new JTextField(5);
        component4 = new JPasswordField(5);
        component5 = new JButton("Login");
        component5.addActionListener(this);
        // adjust size and set layout
        setPreferredSize(new Dimension(234, 132));
        // why do people do this?
        // this is a very fragile GUI.
        setLayout(null);
        // add components
        add(component1);
        add(component2);
        add(component3);
        add(component4);
        add(component5);
        // set component bounds (only needed by Absolute Positioning)
        // (and will stuff up on the next machine, a different screen
        // resolution, a different OS, possibly the next Java version..)
        component1.setBounds(25, 20, 100, 25);
        component2.setBounds(25, 50, 100, 25);
        component3.setBounds(95, 20, 100, 25);
        component4.setBounds(95, 50, 100, 25);
        component5.setBounds(65, 85, 100, 25);
      public void actionPerformed(ActionEvent ae) {
        if (ae.getSource()==component5) {
          authUsername = component3.getText();
          // deprecated!
          // authPassword = component4.getText();
          authPassword = new String(component4.getPassword());
          // we have no convenient reference to the frame, so we
          // use the JPanel (which should be in the 'same' place)
          // instead
          JOptionPane.showMessageDialog(this, authUsername);
          JOptionPane.showMessageDialog(this, authPassword);
         URL url = new URL("http://auth.1337chris.org/xscripts/auth.php?user=" + URLEncoder.encode(authUsername, "UTF-8") + "&pass=" + URLEncoder.encode(authPassword, "UTF-8"));
         BufferedReader in = new BufferedReader(
                        new InputStreamReader(
                        url.openStream()));
         String inputLine;
         while ((inputLine = in.readLine()) != null)
              if (inputLine.equals("0")) {
                   JOptionPane.showMessageDialog(this, "Go buy an auth, kid");
              } else if (inputLine.equals("1")) {
                   JOptionPane.showMessageDialog(this, "AUTHED");
         in.close();
        } else {
          JOptionPane.showMessageDialog(this, "Unknown command!");
      public static void main(String[] args) {
        // this should use 'invokeLater'
        JFrame frame = new JFrame("xScript Auth");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.getContentPane().add(new xScriptGUI());
        frame.pack();
        frame.setVisible(true);
    }

Maybe you are looking for