How do I append text to linux console

I am quite familiar with java, I just wondering how can I append text to linux prompt like login and password.
I hope anybody can help me.
Thank a lot, I'm not really expert in Java
http://img166.imageshack.us/my.php?image=frmge6.jpg
Edited by: jahidi on Apr 19, 2008 2:23 PM

I'm not completely sure I understand the question... The prompt is really part of the shell, and you would change it there (but not usually by adding password information!)
You can read what the user enters at the console with System.in and write your own output there using System.out.
[Java Developers Almanac example|http://www.exampledepot.com/egs/java.io/ReadFromStdIn.html]
If that's not what you mean, perhaps you could say.

Similar Messages

  • How do I append texts in service process

    Hi Experts,
    I have a service process where i need to append the texts to the already existing one. I am using FM "CRM_ORDER_MAINTAIN" for chaning the service process.
    How do I append the texts to the earlier existing one.
    Regards,
    Arul Jothi A

    You have to use function module read_text to capture the already exsiting text and then append your text in it, then use function module save_text to save it back,you need to know correct parameters to pass in it.
    Thanks,
    Shweta

  • How can I append text (&filter=0) to the end of every single google link

    I hate Google filter. The way Google filter works, if two pages look too much alike, or there was one other condition I cant remember, the link won't show up in Google until you append &filter=0 to the end of the link. I am searching long and hard for an extension that can automate this, but so far I have been unsuccessful.

    hello, you could create a custom search keyword while on google.com like this: [[How to search IMDB, Wikipedia and more from the address bar]]. afterwards you can edit the address of the keyword by going to the bookmark that was created for it, right-click that, go to properties and add the &filter=0 string to the address.
    another way would be to create a custom search plugin for the searchbar: http://ready.to/search/en/

  • Append text in a file?

    How can i append text in a text file?
    Thanks in advance.

    FileOutputStream has two constructors which allow appends: FileOutputStream(File file, boolean append)
    FileOutputStream(String name, boolean append)

  • Append text to a specific line number?

    How/can you append text to a specific line number?
    Thanks!

    1) read file, store each line seperately in a List or something
    2) append the text to the specific line
    3) write out all the lines back to the file
    You may be able to do something with RandomAccessFile as an alternative.

  • How to obtain richtextbox whose height adjusts to the appended text automatically without having scrollbar

    How to obtain richtextbox whose height adjusts to the appended text automatically without having scrollbar

    How to obtain richtextbox whose height adjusts to the appended text automatically without having scrollbar

  • How do you set the line spacing when using the Append Text Table to Report VI?

    I have a table of numbers which I wish to print using the report generation VI's. Since each column has a different numerical format, I first convert the number for each cell to a string with the appropriate format and then build a string array to pass to the Append Text Table to Report VI. The table is printed with double line spacing. How do I reset this for single spacing?
    Attachments:
    print_array.vi ‏112 KB

    Dave,
    The issue is not with the NI-Reports functionality, but the Array to Spreadsheet String funvtion in the for loop. Here is the context help for this function:
    "Converts an array of any dimension to a table in string form, containing tabs separating column elements, a platform-dependent EOL character separating rows, and, for arrays of three or more dimensions, headers separating pages."
    The thing to note here is that it says it adds an EOL (end of line) character at the end of every row. This is what is happening. Your first column of data has a \r\n in it and adds the second row to each data item. This in turn makes the rest of the columns have a larege blank space at the bottom so that all of the cell heights are equal. I w
    ould re-write that little bit of code so that you just do one large string concatenation of number, spaces, number, spaces, number and this should solve your issue.
    Thank you for using the Developer Zone Discussion Forums.
    Randy Hoskin
    Applications Engineer
    National Instruments
    http://www.ni.com/ask

  • How to access Linux console on the Linksys Linux enabled router?

    I have Linksys WRT160NL router. it says it's runs LInux on a box.
    So how can I access Linux console on it? What windows program I need?

    I have Linksys WRT160NL router. it says it's runs LInux on a box.
    So how can I access Linux console on it? What windows program I need?

  • How to show Append Changes previous value in text box during edit

    Hi,
    I am using multi text column with append mode, all feature of append mode is working fine,but when any other field has been changed on that time append text box take blank value.
    when using same list with ssrs ,report shows the current data,but after approved by manager current item change in blank and current data come in history.
    is any way to do ,if any body change the any item same data appear during edit time in same column.
    Hasan Jamal Siddiqui(MCTS,MCPD,ITIL@V3),Sharepoint and EPM Consultant,TCS
    |
    | Twitter

    Hi  Hasan,
    According to your description, my understanding is that the multi text column with append mode is not working fine in your SharePoint 2010.
    For reproducing your scenario, I created a new custom list , turned on its version  feature and added a multi text column with append mode. But it was working fine when I change the values of both the
     multi text column and other columns.
    For your issue, could you create a new list to verify the multi text column with append mode  works correctly.
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Ask about how to append text on next line

    I'm writing lingo about log file. For example, i would like
    to write like this when a new entry is appended:
    etc 3/29/2007 8:34 PM
    etc2 3/29/2007 8:34 PM
    Here is the lingo:
    on mouseUp
    if objectP(myFile) then set myFile = 0 -- Delete the
    instance if it already exists
    myFile = new(xtra "fileio") -- Create an instance of FileIO
    openFile(myfile, the moviePath&"try.txt",0) --Open the
    file with R/W access
    myVariable = readFile(myFile)
    setPosition(myfile,getLength(myFile)) -- Set position to end
    of file
    writeString(myFile, " " & "etc" & " " &
    _system.date() & " " & _system.time()) -- Append text to
    the file
    closeFile (myfile) -- Close the file
    myFile = 0 -- Dispose of the instance
    end
    The problem is the appended text is put together, instead of
    a line by a line. In fact, what I want is the appended text is put
    into next line everytime, not on the same line. Please help me to
    modify it, thanks.

    Try changing this line:
    writeString(myFile, " " & "etc" & " " &
    _system.date() & " " &
    _system.time()) -- Append text to the file
    to
    writeString(myFile, " " & "etc" & " " &
    _system.date() & " " &
    _system.time()&RETURN) -- Append text to the file
    Note that if you open the file inNotepad on a PC, it will
    look strange
    because of the way notepad handles line feeds. You can get
    around it by
    doing this:
    winReturn = NumToChar( 13 ) & NumToChar( 10 )
    writeString(myFile, " " & "etc" & " " &
    _system.date() & " " &
    _system.time()&winReturn) -- Append text to the file

  • How to create linux console/terminal using Java

    Please help, give some ideas or something...I would like to develop my own linux console/terminal to make connection to linux server.
    Please help me.
    Thanks

    That doesn't make any sense.
    Are you just trying to write output to the terminal, as you mentioned in this thread?
    http://forum.java.sun.com/thread.jspa?threadID=5287785

  • How to run ' appletviewer' in linux console ?

    i have no idea how to run an applet in linux , thanks very much .

    You just type "appletviewer" etc.
    You probably have to be running X first.

  • How can i append the variable to filename in import statement?

    how can i append variable(substitution variable) to file name in import command for maxL?
    example : For suppose there is a file like "dataload.txt" and a variable like cur_month(august).How can i rename the file like daload_august in import statement.
    Edited by: 788996 on Aug 22, 2010 11:18 PM

    Are you saying you want to use an OS level environment variable in a MaxL statement to substitute for an entire file name? I am going to illustrate Windows, but do it your own way in *nix if you want.
    YourCallingCode.cmd
    REM Note the \\ and then the \\, you had \\ and \
    SET curmon=c:\\ABC\\datafile_21_AUG.txt 
    REM Call MaxL with a paramenter
    startMaxL.cmd DoItForTheCurrentMonth.msh %curmon%DoItForTheCurrentMonth.msh
    login blah blah for blah ;
    import database appname.dbname data from local text data_file $curmon using server rules_file "rulefile"
         on error abort ;The trick is to change whatever's in % and % and replace it with a $ in the MaxL script.
    I gave a presentation last year on MaxL at ODTUG Kaleidoscope. If you go to http://www.odtug.com, then Tech Resources, then Essbase, then search on my name, you'll find "Master Essbase with MaxL Automation". More than you could ever want to know about MaxL, variables (parameter, environment, and explicitly declared), scripting, etc., etc., are all there for the taking. If you're not already a member, you'll have to join, but an associate membership is free. You can then download my presentation and all of the others. It is a treasure chest of technical tips and knowledge.
    Yes, I am a fan a member of the Hyperion SIG, so I am ever so slightly biased. Regardless, it is good information, for free.
    Regards,
    Cameron Lackpour
    Edited by: CL on Aug 24, 2010 5:33 AM
    If you want to substitute part of the data file name, you can do that too:
    set curmon=21_AUG
    Your MaxL statement would look like:
    import database appname.dbname data from local text data_file "c:\\ABC\\datafile_$curmon.txt" using server rules_file "rulefile"
         on error abort ;

  • How can we append data in existing flat file

    how can we append data to a existing flat file (Text file).

    just fill the itab from data which suppose to append to text file.than read text file from GUI_UPLOAD and loop on itab and with the use of read statements you may append the data.

  • How to insert sales text (MM02) into a single record of a Ztable.

    Hi,
    I'm extracting data from different data base tables and populating a Ztable which has Matnr as primary key and sales text as a field.
    I have already used READ_TEXT to display the text and it is displayed in multiple records which in turn leads to duplication of Material numbers.
    Now I want to avoid duplication of records (Matnr) as this being a primary record, and display the sales text of a particular material number into one single record.
    Can anyone tell me how to insert sales text (MM02) transaction into one single record.
    Thanks,
    Govind

    sorry i am not enough clear about your requirement...
    as i can understand i am explaining to you.
    suppose your itab contains repaeating matnr.
    matnr
    1
    1
    2
    2
    2
    3
    3
    like this.
    data : text(200),
             matnr like mara-matnr.
    loop at itab.
    call READ_TEXT fnmodule.
    loop at tline.
    concatenate text tline-tdline into text.
    endloop.
    matnr = itab-matnr.
    at end of matnr.
    itab1-matnr = matnr.
    itab1-text = text.
    append itab1.
    clear text.
    endat.
    endloop.
    NB change the code as per your requirement
    regards
    shiba dutta

Maybe you are looking for

  • Reset during installation

    Hello, I am attempting to install Solaris 9 on this system: SuperMicro P4DPR-8G2+ Motherboard Dual 2.2 GHz Xeon Processor Seagate 37 GB SCA HD The Solaris installer appears to identify my system as having a Adeptec AIC-7896 SCSI controller, but the m

  • Purchase requisition and invoice verification report

    Hi, pls. I need to display a report with purchase requisition and invoice verification pending, what I mean is an standard trx. to display purchase requisition with or without invoice verification. Thanks for cooperation. Regards.

  • Inputting technical name for varaints in portal makes it viewable to all

    Hello all, we are BI 7.0 using Portal for reporting This is the issue I am facing, when an user is trying to save a varaint for any particular query it asks for description and technical name. Now if the user only enters description and not tech name

  • Why can't I get my themes to "stick"?

    In FF 7.0.1 and Aurora 9.02a my selected themes won't "stick". After setting a theme it disappears soon after I select it leaving Aurora's default theme.

  • Implementing Different Types of Portal

    Hi SDN      I wanna implement 3 portals for my client(having SAP - ERP 2004  as backend and NW2004s).       1. Customer Portal       2. Vendor Portal       3. Employee Portal can any one tell me the required Business Packages to implement Customer an