SAP related UNIX commands needed.

Dear All,
I am new to unix environment, we have HPUX OS.
Please provide me frequently used Unix commands related to SAP.or document please send it to me at [email protected] or paste it here.
appreciate your early response.
Regards,
SM

Hi again. The commands like ps -ef or grep is not special commands for SAP,it's commands for HP-UX, you can read
about him on HP forums or HP documents...
The links -->
1) Technical documentation http://docs.hp.com/
2) Online help - home http://www12.itrc.hp.com/service/help/onlineHelpHome.do?admit=109447627120628628184728353475
3) Forums --> hp-ux technical documentation
http://forums11.itrc.hp.com/service/forums/categoryhome.do?categoryId=475
If you interest some commands only run search on the HP forum.
Regards. Award if helpful.

Similar Messages

  • Working Code from Unix Command, needs fixing!

    /* Codes needs modification to run and display in GUI, will run and produce output in terminal, but will not display in GUI with setText and getText */
    import java.io.*;
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.border.*;
    public class UnixCommand extends JFrame
    private JComboBox comboBox;
    private JTextArea displayArea;
    private JPanel mainPanel, displayPanel, comboPanel;
    private String names[] = { "Check Processes", "Check Network Connectivity",
                        "Check Remote Users", "Check Share Devices" };
    TitledBorder selectBorder, displayBorder;
    public UnixCommand()
         super( "Unix Command Tools in GUI" );
         Container container = getContentPane();
         mainPanel = new JPanel( new BorderLayout() );
         container.add( mainPanel );
         displayPanel = new JPanel();
         comboPanel = new JPanel();
              mainPanel.add( displayPanel, BorderLayout.CENTER );
              mainPanel.add( comboPanel, BorderLayout.NORTH );
                   comboBox = new JComboBox( names );
                   comboBox.setMaximumRowCount( 3 );
                   comboPanel.add( comboBox );
                        selectBorder = BorderFactory.createTitledBorder( "Select the Task to Perform" );
                        selectBorder.setTitlePosition( TitledBorder.TOP );
                        comboPanel.setBorder( selectBorder );     
                   displayArea = new JTextArea( 22, 40 );
                   displayPanel.add( displayArea );
                        displayBorder = BorderFactory.createTitledBorder( "The Command Output Selected" );
                        displayBorder.setTitlePosition( TitledBorder.BOTTOM );
                        displayPanel.setBorder( displayBorder );
    String s = null;
         displayArea.setText("\tHere is the standard output of the command:\n");
    try
                             // run the Unix "ps -ef" command
    Process p = Runtime.getRuntime().exec("ps -ef");
    BufferedReader stdInput = new BufferedReader(new
    InputStreamReader(p.getInputStream()));
    BufferedReader stdError = new BufferedReader(new
    InputStreamReader(p.getErrorStream()));
                        // read the output from the command
    System.out.println("Here is the standard output of the command:\n");
    while ((s = stdInput.readLine()) != null)
    System.out.println(s);
                        // read any errors from the attempted command
    System.out.println("Here is the standard error of the command (if any):\n");
    while ((s = stdError.readLine()) != null)
    System.out.println(s);
    System.exit(0);
    catch (IOException e)
         System.out.println("exception happened - here's what I know: ");
         e.printStackTrace();
         System.exit(-1);
    setSize( 500, 500 );
    setVisible( true );
    public static void main( String args[] )
         UnixCommand application = new UnixCommand();
         application.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
    }

    All files are regenerated if changed.
    That goes for the .java and the .class files that are created. The jsp server checks to see if the current version is the latest. If it is, nothing gets changed or recompiled. If things are different, programs are recompiled.
    Youll notice that if you have a new jsp it always takes longer the first time. Or even when you change a jsp, the first time takes the longest for the page to come up in a browser. This is because of recompiling.
    Does this make any sense?
    Adam

  • Unix command needed to search alert log

    Hi. Im trying to search the alert log file to see if there is any thing related to the checkpointing process.
    Specifically Im looking for anything that includes "Checkpoint not complete".
    If anyone knows the command for searching the file in UNIX for this then please post here!
    Many thanks
    DA

    Hi Dan,
    "Checkpoint not complete".In UNIX try: http://www.dba-oracle.com/op_unix_16_cat_grep_commands.htm
    grep "checkpoint not complete" /u01/app/..../alertSID.log
    In Windows:
    http://www.dba-oracle.com/t_windows_alert_log_script.htm
    I e-mail myself important alert log messages, using this technique:
    http://www.remote-dba.cc/oracle_tips_table_alerts.htm
    Also, you can read the alert log from SQL, if you want:
    http://www.dba-oracle.com/t_oracle_alert_log_sql_external_tables.htm
    Hope this helps. . .
    Donald K. Burleson
    Oracle Press author
    Author of "Oracle Tuning: The Definitive Reference":
    http://www.dba-oracle.com/bp/s_oracle_tuning_book.htm

  • Unix Command Needed

    I would like to format a SATA drive that is connected with a USB adapter, but I am unsure how to do it without overwriting my internal drive.
    diskutil resizeVolume disk0s2 200G "JHFS+" 4-Linux 30G "MS-DOS FAT32" 4-Windows 0b
    The command above was copied from another forum. I couldn't remember if it has a typo that needs to be fixed (0b to 0G?).
    I assume that disk0s2 needs to be changed, but I cannot figure out what my external drive would be named. Please advise.

    diskutil resizeVolume disk1s3 200G "JHFS+" 4-Linux 30G "MS-DOS FAT32" 4-Windows 0b
    Thanks, that worked perfectly!
    This worked, but I now see that UNIX was not needed to make it happen. I'm stumped why so many forums regarding triple booting a Mac don't use Disk Utility instead of UNIX. Not to mention, I found one that had bad syntax, and I had to keep searching to find one that worked.
    The Linux partition was formatted in Mac OS Extended Journaled. Linux must be able to see the partition when installing, and then it probably reformats to a non-Apple scheme before installation begins. Since it cannot be mounted by OS X when booting into X, it may be defaulting to ext3 format. In Disk Utility, it shows up as disk0s3, and it is grayed out.

  • Need a unix command

    Hi all,
    I just can't figure this out... I need a unix command that will backup any file matching a specific file extension AND the directory structure those files are in into a separate directory or volume. In other words, let's say that I have the files and directory structure below. I want to backup all of the txt files as separate files (not a tar archive) without writing the img files, without overwriting one txt file with another, and preserving the directory structure.
    foo/bar/a.txt
    foo/bar/b.txt
    foo/bar/a.img
    foo/bar/b.img
    foo/me/a.txt
    foo/me/b.txt
    foo/me/a.img
    foo/me/b.img
    foo/me/you/a.txt
    foo/me/you/b.txt
    foo/me/you/a.img
    foo/me/you/b.img
    I've read the man pages for ditto and rsync... they're geared toward backing up every file in a directory, and so they're not very clear about how to backup one single file type/extension.
    Everytime I try different varients of the rsync command, I either get errors "rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-24.1/rsync/main.c(717)", or file not found, or it overwrites the 'a.txt' with a different 'a.txt' without preserving the directory structure.
    Can someone give me the exact syntax for backing up the .txt files in the example above to an external disk (e.g. /Volume/backup)???
    Thanks!

    OK... my example was oversimplified. There are tons of different types of files in my directories (*.img, *.gif, *.etc), and I only want to cp one type (e.g., .txt).
    So, I started with the --include flag using the following command:
    rsync -nav --include *.txt foo/ /Volumes/baz/
    the result listed every file in foo (e.g., *.txt, *.img)
    I thought that perhaps the \*.txt should be *.txt
    rsync -nav --include *.txt foo/ /Volumes/baz/
    the result listed every file in foo (e.g., *.txt, *.img)
    rsync -nav --include "*.txt" foo/ /Volumes/baz/
    again, the result listed every file in foo (e.g., *.txt, *.img)
    Clearly, the --include flag wasn't working as I expected it to work. So, I decided to try the --exclude flag:
    rsync -nav --exclude "*.img" foo/ /Volumes/baz/
    Now, the results listed every file in foo except the *.img files.
    I needed to exclude other files as well, so I tried:
    rsync -nav --exclude "*.img *.etc" foo/ /Volumes/baz/
    Now, the results listed every file in foo INCLUDING the *.img files. So, adding additional file types within quotes broke the original command.
    rsync -nav --exclude *.img *.etc foo/ /Volumes/baz/
    Now, I get the error "rsync: link_stat "/Volumes/HD/foo/*.etc" failed: No such file or directory (2)"; and all .etc files are still included
    Now I tried:
    rsync -nav --exclude *.img --exclude *.etc foo/ /Volumes/baz/
    Now, this excluded both *.img and *.etc files. I have about 20 file types other than *.txt ... there has to be some other way!!!
    PowerMac Dual 2.7GHz G5 Mac OS X (10.4.9) 4.5GB RAM

  • Unix command sorely needed

    Hi
    Our tmp file was rammed up to 98% early this morning and I was called to deal with it.
    I needed to see the largest files then decide if we could eliminate them.
    I really need a Unix command that will list the largest files first (or last) from a given directory.
    Does this command exist? I already tried googling to meagre avail.
    Thanks.
    AIX 5.2
    9.2.0.2
    DA

    Hi Dan,
    I really need a Unix command that will list the largest files first (or last) from a given directory.Here is how I do it, using the "find" command:
    http://www.dba-oracle.com/t_unix_script_find_files_older_date.htm
    Finding large files on Linux
    The following command is very useful in cases where a Linux file system has become full. As we may know, Oracle will hang whenever Oracle must expand a tablespace and Oracle cannot extend the UNIX filesystem.
    When a UNIX file become unexpectedly full, it may be because Oracle has written a huge core or trace file into the UNIX filesystem.
    The script below will display all files that are greaten then one megabyte in size. Note that the size parameter is specified in K-bytes.
    root> find . -size +1024 –print
    ./prodsid_ora_22951.trc
    Of course, you can easily append the xargs of –exec command to automatically remove the large file:
    root> find . -size +1024 –print|xargs –i rm \;
    This find command will do a "stats" on all files in a directory structure, showing the total size of all files in the directory. You can also incorporate the "df -k" command"
    find ${START_DIR} -mtime -${DAYS} |xargs stat -c "%s"|awk '{sum += $1}END{print sum}'
    Hope this helps . . .
    Donald K. Burleson
    Oracle Press author
    Author of "Oracle Tuning: The Definitive Reference"
    http://www.rampant-books.com/book_2005_1_awr_proactive_tuning.htm

  • What is the absolute client permission needed to receive Unix commands?

    The ARD error "This task is not authorized on (computerName)" is forcing me to allow almost all the privileges in the Remote Management section of client computer's Sharing System Preferences. I've already had to add:
    "open and quit applications"
    "change settings"
    "delete and replace items"
    "restart and shutdown" (see this Apple document's suggestion for Unix commands)
    "copy items"
    It makes no sense to my why 'Generate reports' must also be added, but clicking it off makes the error return. I'm just triggering a Unix command that goes something like "echo 1" and runs as root on the one test computer (and potentially dozens, so it wouldn't be pretty changing settings in that many) If it helps, the ARD host is 10.6.7 with ARD 3.4 (installed via the App Store a couple weeks ago) and the clients are 10.4.11 and 10.5.8.
    I'm preparing documentation for ARD and some clients installing our software will not warm to the idea of widening up the permissions footprint. Potentially dozens of computers will need to be retweaked, even if they wouldn't have to leave their seat.
    We also will need to deploy a pkg installer, so some of those may need to remain checked, but ...
    What is the absolute client permission needed to receive Unix commands?
    Thanks

    Have you tried sending it as User: Root
    To my knowledge with that setting you do not need any client permissions as a unix command used as Root overides any permission set. If this is something you need to do often I do know for a fact you can make the report task up use send as Root and tell it to save as template. After this you will be able use the templte to make things a bet quicker. I believe in oder to do this you must enable root user open Directory Utility in order to do this. Keep in mind root has full permissions and any command you enter with unix will be executed as such. This is a word around in the way that the normal client users do not need to have permissions enabled, also having root available at times is handy in stick situations.

  • Unix commands in ABAP

    Hi,
       I need to call the following unix command in ABAP to encrypt a file on the app server .
    crypt password <org filename> new_filename
    1 But when i run it using call 'SYSTEM' .. i get message security risk , command not executed ..
    2 I also created the command in SM69 and tries to run it but same error.
    3 I also created a shell script , but i get another message when i try to run sh ...
      Please help to find out a way to make it work ..
    Kunal

    Hi kunal,
    1. probably ur basis team might be able to help u.
    2. even if we have authorisations thru sap
       to run external os command,
       the actual OS user on application server
       must have the right for it
       and access/write/read/modify
       for the files (provided thru the command)
       in question.
    3. Due to this , the systems gives the message
       of SECURITY RISK.
    regards,
    amit m.

  • UNIX command and SXPG_COMMAND_EXECUTE

    HI all,
    Let me explain my requirement:
    I need to move all files from source dir to target.
    For that i need to read source dir and target dir from selection screen.
    I wrote UNIX command as follows:
    "mv -f /common/home/edw/parsekb/b2/* /common/home/edw/parsekb/b1"
    where i m specifying the src and target dir.
    so i need to pass the parmeters as srcdir and targetdir?
    how should i do it?
    i knw i need to create a command in SM69,then what will be the parameters in that case?
    and how to call that from ABAP ?
    if anybody give me explaination w.r.t. coding steps then that will be gr8.
    but pls specify SM69 steps and ABAP both
    Thanx in advance

    Hi!
    1. Create your shell script your_shell_script.sh:
    src=$1
    dst=$2
    mv -f $src $dst
    2. Create your command Z_YOUR_COMMAND using SM69:
    - Operating system command: /bin/sh (the path to your shell interpretator)
    - Parameters for operating system command:
    /home/sap/bin/your_shell_script.sh (the path to your shell script)
    - Set "Additional parameters allowed" checkbox
    3. Call your command from ABAP:
    data:
    param type sxpgcolist-parameters.
    status type extcmdexex-status,
    exitcode type extcmdexex-exitcode,
    it_log type table of btcxpm.
    p_src = '/common/home/edw/parsekb/b2/*'.
    p_dst = '/common/home/edw/parsekb/b1'.
    concatenate p_src p_dst into param separated by space.
      CALL FUNCTION 'SXPG_CALL_SYSTEM'
           EXPORTING
                COMMANDNAME                = 'Z_YOUR_COMMAND'
                ADDITIONAL_PARAMETERS      = param
           IMPORTING
                STATUS                     = status
                EXITCODE                   = exitcode
           TABLES
                EXEC_PROTOCOL              = it_log
           EXCEPTIONS
                NO_PERMISSION              = 1
                COMMAND_NOT_FOUND          = 2
                PARAMETERS_TOO_LONG        = 3
                SECURITY_RISK              = 4
                WRONG_CHECK_CALL_INTERFACE = 5
                PROGRAM_START_ERROR        = 6
                PROGRAM_TERMINATION_ERROR  = 7
                X_ERROR                    = 8
                PARAMETER_EXPECTED         = 9
                TOO_MANY_PARAMETERS        = 10
                ILLEGAL_COMMAND            = 11
                OTHERS                     = 99.
    if sy-subrc <> 0.
    *TODO: add your error handling logic
    endif.
    Regards,
    Maxim.

  • ARD-Unix Command for Energy Saver Settings

    I need to take out the schedule for turning on and off 100 + iMacs. The setup was done with managed preferences in OSX server but cannot be taken off now. Is there a way to turn this off using a unix command with ARD? I've been doing one by one with ARD!

    Use ARD to send the Unix command systemsetup -help
    This will return a bunch of different commands for you to look at that are related to power and energy saving settings. Make sure you send the command as the root user
    You can always read the man files for the pmset command using your Terminal app. Also check out this page too:
    http://www.hmug.org/man/1/pmset.php

  • SFTP using Unix command

    Hi all,
    I am trying to upload a file from SAP to a folder in another server.
    Here they want us to use SFTP port 22 which is not supported by SAP by default i guess.
    Could any one give me clear procedure and commands to be used in program in order to upload the in file in the server.
    If you could give the methods and FMs and unix commands used it would be great.
    I went through lot of threads but very few are talking about SFTP and i am not the clear about how to go with it.
    Few say that we need to create and external command in SM59.
    IF it is so can you tell what exactly are the parameter to be given for ex i want to put a file so what would be the parameters and how do we use this command in my program
    Any sample code which puts the file another server???
    Thanx

    Check if your able to do sftp at command line from the server where BPEL is running.
    --Prasanna                                                                                                                                                                                                   

  • Method to restart Oracle Apps 11i OPP via Unix command line

    Hi All,
    Does any one knows if there any way to restart Oracle Apps 11i Output Post Processor (OPP) via the UNIX command line?
    Thanks

    Oracle-User wrote:
    Do you recommend that I set the profile option Concurrent: OPP Response Timeout to a higher value instead of increasing OPP Processes from 1 to 2? Yes.
    I'm thinking that increasing OPP Response Timeout to a higher value will not solve our issue as it seems that once we get our first OPP Timeout error, all of the requests that need the OPP fail. We've had this occur on a Saturday, which is a day where the volume of jobs that need the OPP is very low. The error you are getting is related to the timeout and it has nothing to do with the number of OPP processes you are running on. Please set this profile option and check then (after you bounce the OPP).
    Thanks,
    Hussein

  • Java , abab stack restart by using unix commands

    hi experts,
    i need steps to restart java , abab stack restart by using unix commands.
    plz any one give me clear steps.
    thanks& regards,
    Xi reddy

    Hi,
    Check following
    http://help.sap.com/saphelp_nw04/helpdata/en/5d/c4dd9b9d91dd458e9e5c0386edeb86/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/fe/40a04270600d31e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/85/24a64201e7c511e10000000a1550b0/frameset.htm
    regards,
    kaushal

  • Executing Unix Commands

    Hi
    I realise there is a Runtime class to help execute Unix commands from within Java code, but how would this work if the command required a password.
    For example, were I to try to execute:
    ssh -Y myserver.domain.com -u Myself -p
    How would this work with supplying the password (which is prompted for after the command is sent to the shell)?
    Thanks
    Dave

    from the ssh man page under "environment variables":     SSH_ASKPASS
                  If ssh needs a passphrase, it will read the passphrase from the
                  current terminal if it was run from a terminal.  If ssh does not
                  have a terminal associated with it but DISPLAY and SSH_ASKPASS
                  are set, it will execute the program specified by SSH_ASKPASS
                  and open an X11 window to read the passphrase.  This is particu-
                  larly useful when calling ssh from a .xsession or related
                  script.  (Note that on some machines it may be necessary to
                  redirect the input from /dev/null to make this work.)

  • I want to execute UNIX COMMAND in ABAP

    Hi All,
    I want to execute a UNIX XOMMAND sh <scriptname> <filename> to replace divsion codes.in ABAP.
    But, I came to know that we can't (2) or try the following program but unfortunately the command CALL SYSTEM is not supported by SAP. If you are on R/3 2.1 - 2.2x you can get some idea's from the program SAPMSOS0.
    REPORT ZUNIXCOM .
    DATA: U_COMMAND(200).
    Table for system messages
    DATA: BEGIN OF RT OCCURS 100 ,
    LINE(100) ,
    END OF RT .
    START-OF-SELECTION .
    MOVE 'unix command' to U_COMMAND .
    REFRESH RT.
    CALL 'SYSTEM' ID 'COMMAND' FIELD U_COMMAND
    ID 'TAB' FIELD RT-SYS .
    LOOP AT RT.
    WRITE : / RT-LINE .
    ENDLOOP. 
    So please can u help me how to call a unix command from ABAP. it is very urgent. I want complete details and all possible solutions
    <removed_by_moderator>
    Thanks,
    gyanaraj
    Edited by: Julius Bussche on Aug 26, 2008 11:29 AM

    Selvaraj Gyanaraj wrote:>
    > So please can u help me how to call a unix command from ABAP.
    I was about to help you.
    >it is very urgent.
    I changed my mind.
    >I want complete details and all possible solutions
    I'm glad I changed my mind.
    >Points are surely rewarded.
    Too late.

Maybe you are looking for

  • Frequent safari crash

    Back in July, I posted some Safari crash logs hoping someone could figure out why I am unable to use Safari anymore on my MacBook. (See Help! Frequent Safari Crashes. Crash logs included. Posted: Jul 1, 2008 8:37 PM) Some helpful suggestions were mad

  • Object Class Invalid when downloading the pricing procedure from ECC to CRM

    Hi, I want to download the pricing procedure for that I have created the ZDNL_CUST_CND which contains only the following tablesT683, T683S, T683T and T683U. When I check in R3AM1 status is Red. The following Error have been found in SLG1 •     Object

  • How do I download a movie from my zip drive

    I have a movie my husband got for me from his work, how do I get it from my zip drive to my I tunes movie section, and how do I get my home video in the home vidieo section?

  • Can't Move Text Boxes

    I am trying to add mobile pages from my mobile site, but when I copy/paste the text boxes from the desktop version, then try to move them, Muse crashes. It also crashed when I created a new text box, added type, and tried to move that. Here is the er

  • Button - Varying pause trigger time

    Captivate 8.0.1.242 - Windows 7 - 64 bit - swf format I'm adding a button which runs an advanced action expression exactly as this post (CP8 - add a replay button on a slide). I have a 1 minute CPVC video. Now, I want this replay button to be present