How to change the name of an exec'ed program

Hi
Is there a way to change the name of an exec'ed program?
My problem is, that when I start a bunch of Java apps, they all
show up as /opt/jre/bin/sparc/green_threads/java
I want to write some C code, which I could call using the Java
Native Interface.
Igor

Hi,
If you are exec'ing the programs and want them to show a diffent name, specify a different argv[0] to the exec. Eg:
<pre>
include <stdio.h>
#include <sys/types.h>
main()
pid_t pid;
pid=fork();
if (pid==0) {
execlp("/usr/bin/ps","junk","-ef",NULL);
</pre>
If you want to change the name of an already running program then I suspect some kernel jiggery pokery is required.
Ralph
SUN DTS

Similar Messages

  • How to change the "name of column" property of an text item in runtime?

    How to change the "name of column" property of an text item in runtime?
    I look the properties of items in help and found nothing about this!
    It's possible?

    Hi,
    an other solution is change the block property QUERY_DATA_SOURCE_TYPE from "Table" to "Sub-query" , than change at run time the property QUERY_DATA_SOURCE_NAME.
    First create block and add items
    The QUERY_DATA_SOURCE_NAME will be for ex. "Select 'A' as col1, 'B' AS col2, 'C' as col3 from dual"
    Set into items the column name property to col1 , col2 ...
    At run time change the query to "Select 'Z' as col1, 'X' as col2 , 'Y' as col3 from dual"
    in this way you can change the source of column value.
    Caution because if you change value type from varchar2 to date you must cast date into varchar2.
    May be that this way is valid only for view data not for insert-update, i don't remember.
    bye
    Message was edited by:
    Killernero

  • How to change the name of a BADI Implementation?

    Hello experts,
    Does anyone knows how to change the name of the BADI Implementation? I just create a new Implementation but we need to rename it.
    Thanks in advance,
    AK

    Hi,
    Please go to transaction SE19, enter your implementation name.
    Then go to menu: Implementation -> Rename -> ...
    Regards,
    Ferry Lianto

  • Will someone please tell me how to change the name of a folder I created in Pages and saved to the cloud?

    Will someone please tell me how to change the name of a folder I created in "Pages" and saved to the "Cloud"? Thanks.

    Go to the open dialog in Pages and select iCloud.
    Click on the folder that you created on iCloud to open the folder.
    On the lower half of the window (the open folder) click on the name of the folder.
    Once you click and select the folder's name it should be editable.

  • How to change the name of column in ActionScript?

    I possibly know how to change the name of the column in DataGrid using mxml but dont know how  to change the name of column in  DataGrid using  ActionScript.
    var newDataGrid:DataGrid=new DataGrid();
         newDataGrid.dataProvider=arrayCollection():
    It takes the default names from arraycollection but I wanted to give any column names which I want through ActionScript.
    Please HELP!

    Give your datacolumn and id.  Then set the property for that column through the datacolumn id.
    DataGridColumn id="nameDC"
    Script:
    nameDC.headerText = "Name";

  • HT204053 Our Apple ID is ok and functioning.  However, I just came on as the IT for the group and cannot find how to change the name.

    Our Apple ID is ok and functioning.  However, I just came on as the IT for the group and cannot find how to change the name.

    Assuming you mean the personal name associated with the account, as opposed to the login (which you can change if it's not an @icloud.com. @me.com or @mac.com address) you can change this at http://appleid.appla.com . Click on 'Manage your account' and then on 'Edit' next to 'Your name' and the name currently associated with the ID.

  • Can anyone tell me how to change the names of the networks I have set up on Airport Express

    Can anyone tell me how to change the names of the networks I have set up on Airport Express please? I now work in a UN compound and my network is my own name, would prefer some anonymity so seeking to change the wifi network name that others might see.

    Hi mkl1961,
    Happy Holidays!  The article below will explain how to reset your Airport Express and change the network and base station names back to their defaults.  
    Resetting an AirPort base station FAQ - Apple Support
    http://support.apple.com/en-us/HT3728
    What default settings will my AirPort base station have after a hard or factory default reset?
    AirPort base stations are set to request an IP address by DHCP.
    AirPort base station passwords are "public."
    AirPort base station names revert to "base station xxxxxx," where xxxxxx is the last six digits of the wireless MAC address*.
    AirPort base station network names are "Apple Network xxxxxx," where xxxxxx is the last six digits of the wireless MAC address*.
    *A MAC (Media Access Control) address, also known as a "network ID," is a unique hardware identification number for a network port.  You can find the wireless and Ethernet network IDs on the printed label on the bottom or side of the device.
    Airport Express Setup Guide
    manuals.info.apple.com/MANUALS/1000/MA1613/en_US/airport_express_80211n_2nd_gen _setup_guide.pdf
    I hope this information helps ....
    - Judy

  • How to change the field length in standard sap program.

    Hi All,
    How to change the field length in standard sap program.
    Urgent
    Example:
    Text1 type c length 75,
    To change :
    Text1 type c length 150,
    Point will be rewarded..
    Thank you,
    Vikram.C

    If the only solution is to change the sap standard program, simply change the program, it will prompt for an access key. This key can be retrieved in the SAP support portal (service.sap.com) at keys and requests, sccr keys, register object.
    Sometimes these actions are outsourced to a competence center, so maybe youre not entitled to do this, in any case ask a resident senior developer for support.
    regards, Rob

  • Existing cross Reference: how to change the name of the file it refers to?

    Hi everybody,
    I am a professional translator.
    One client of mine sent me a complete FrameMaker 9 book file for translation.
    I translated the content via a CAT-Tool and now am in the process of checking if cross references and markers are ok directly into the file.
    I noticed that many cross references are linked to another file of the book. But in the process of translating each file separately, I gave them a slightly different name (I added the language at the end) so as to be able to recognise them eventually.
    Now I have this problem: I cannot find in the cross reference interface where to change the name of the file into the new one the cross reference is supposed to refer to.
    Am I right in wanting to change the file reference? If so, how do I do that?
    Or is it better to avoid this task and rename the translated file into their original names ? Would it work then?
    Thanks for your help.

    ... book file ...
    ...  each file separately, I gave  them a slightly different name (I added the language at the end) ...
    I'm guessing that you renamed the component files by means other than using the Edit > Rename File from the Book menu.
    If so, do over. Rename from the Book menu. It automatically revises all the cross-references in all the component files.
    In a Book, the only thing that's safe to rename with the file manager is the .book file itself.

  • How to change the name associated with iCloud email alias??

    I had MobileMe on the iPhone with alias email addresses and I liked how it didn’t attach any “name” to an alias. For example, I had MainUserName, then for aliases I would have [email protected], [email protected], etc. When I sent an email from my iPhone using one of the aliases as the "from" no name would be associated with the alias email address. If it was the MainUserName then it would associate it, e.g. Main User <[email protected]> will show up on the "From" field when I sent an email. But with iCloud on the iPhone (and iPad), it’s Main User <[email protected]>, Main User <[email protected], etc., which I don’t want.  If anything it should be Alias 1 <[email protected]> or Alias 2 <[email protected]>.  Anyway, I don't want any name associated with the aliases, so when I send an email it will simply say [email protected] or just [email protected] with no name association. 
    It works differently if I access iCloud through a web browser.  If I send an email via iCloud on the web, I can customize and have a different name with each alias, e.g., Tom <[email protected]> or Harry <[email protected]>  And the customization carries over to the Mail app on my Mac.  That would be ideal if the customization carried over to the iPhone and iPad, but I'd be happy if there was no name association with alias email addresses.  Hopefully, there's a solution to the iPhone/iPad situation with iCloud as I don't want the name linked with the main iCloud email address linked with all the different email aliases I have.

    Can I change the name associated with an ipod on my Mac?
    Select the iPod in the iTunes source list, click on its name, and type a new name.
    And can there be more than one iPod on one computer?
    Yes.
    (39352)

  • How to change the name of my Home Folder

    I'm just wondering how I could change the name of my personal home folder which is associated with my username. I heard that there's a script I can download or something.

    First, before you go messing around with your home folder, make SURE you have a backup. If you have to ask how to make one, this process is not for you-it's advanced, and can mess up your data if done wrong.
    1. Open Accounts preferences (>System Preferences...>Accounts)
    2. Unlock the lock at the bottom, if necessary.
    3. Control (or right) click your account's name, and click "Advanced Options..."
    4. (IMPORTANT) Change "Short Name" to what you want the new short name to be.
    5. (IMPORTANT) Change "Home Directory" so that the path is right (I.E. if your new short name is "test1", change the path to "/Users/test1"-basically, DON'T CHANGE "/Users/"-just what comes after it-DON'T TYPE THE QUOTES)
    6. (IMPORTANT) Click "OK", and restart.
    Good luck! AND BE CAREFUL!!!!!!!

  • How to change the name of the Mac I connect to in the drop-down window.

    Using my brand new MacBook, in the drop down menu when I connect to my iMac, it shows up as my name ( which is Derek Walton's Computer) ...... How can I change the name that shows up here? I have tried all areas that iI can think of and altered my name on the iMac but to no avail - e.g. - Network Sharing, Account Name, and so on.... anything anywhere I have changed... but it always shows up with my full name. I have however managed to get the name in the sidebar of the Leopard window to read as I want ( Derek's iMac) but that is all.
    Also, when I am using Airport on my MacBook, in the drop-down menu I see also other neighbours connections.... I am wondering therefore does it follow that they can see my wireless connection ( as Derel Waltons Computer)?
    This has been vexing me all night and I am geting very frustrated, but I bet there is a simple answer..... for those that know!
    Thanks in advance for any help you care to put my way.
    Derek

    It is not a simple issue. Not the same as changing a user account in Preferences. Ttry this link:
    http://docs.info.apple.com/article.html?artnum=106824

  • How to change the name of a moments in photos app in iOS 7?

    Please tell me can i change the name of a moment in photos app in iOS 7. If yes then please tell me how?

    I think you can't change the name I the moments. It's grouped by the iOS. You can choose photos and create albums though.

  • How to change the name of a group mms in iOS 8.1.2?

    I have a group of friends and we made a group mms to keep track of things. There are more than 8 people in this group so I get nonstop messages from everybody and I would like to be more organized and make a name for it. I looked up how to and I did as it said: "Go to the details page and scroll downward and a 'Subject' area should appear and that is where you change the name". This was added back when iOS 8 just came out, I'm wondering if it has changed since then or maybe it's a hardware problem?

    PPer this link Send a group message with your iPhone, iPad, or iPod touch - Apple Support  this for group imessage with Apple devices.  Is everyone an iPhone user?

  • How to change the name of a clone?

    I cloned in order to upgrade to Tiger.
    How do I change the name of the clone?
    I was told this: change the computer's name from the Sharing pane of System Preferences.
    I went into the hard drive with the clone, opened system folder>library>preferencepane folder, clicked on sharingpref.pref pane and got a message saying "you cannot install the preferences pane folder because it already exists"
    What stupid thing have I done?
    Thanks!

    geo3
    What stupid thing have I done?Probably nothing, but what exactly do you want to rename? The "clone", which is a disk volume, or the "computer name"? And if the latter, why?
    I have several volumes which are "clones" and they are named "OSX48", "OSX39" etc so I know which is which (my main system boot volume is just plain "OSX_4"). But at no time did I need to change my computer's name.
    You change the volume name the same way you change a folder or file name: click on the name until it becomes an editable box, and type your new name.

Maybe you are looking for

  • How can I integrate an excel spreadsheet to div tags?

    I am a high school student and we are having a "contest" Whoever can make the best website for our school will have their website published and will not have to take the final exam. I believe that mine is the best in the class so far but there is one

  • FM F4IF_INT_TABLE_VALUE_REQUEST do not return value in RETURN_TAB

    Hi all, I used the FM F4IF_INT_TABLE_VALUE_REQUEST to return the objid and stext and it is showing the search help in the selection screen, however, after i choose a value from the search help, the FM does not return me the value that i have choosen.

  • Can't get FaceTime to work on my iPad

    I have wifi and a data plan.  I added the contact with iPhone number from his iPad.   Always says he is not available.   Any ideas.

  • Ichat on ipad

    I have recently bought an Ipad 2. I can only be impressed with the feel and appearance of it but at that point my admiration stops. WI am more angered by what it WON'T do. Flash of course and video in face book and messenger why won't the camera work

  • Simple Feed from user entry variable to customer exit

    Requirement, I am trying to populate the user entry date from variable single value <b>ZP_userent'.</b> and then feed that date to customer exit variable <b>'ZP_custexit'.</b> to calculate the range User entry date --  '01012099'. but it is not popul