Question on "who" command in Unix

Dear all,
I am accessing a Unix (Solaris 10)  host via putty. I login as root and I execute the who command.
I get an output like the below
root       pts/2        Jan 22 08:16    (423t51j.virago.internal.uk)
where 423t51j is the network name of my PC
Hours later, I connect from the same PC with putty and execute "who" but the terminal name appears different
root       pts/2        Jan 22 11:16    (423t51j.finance.local)
Any ideas where this is set and how I can make it stay with the correct network name (which is the second , finance.local )
Many thanks
Andreas

This is probably pulled from the your DNS server based on your incoming address (or maybe your hosts file if DNS is unreachable). Have you tried running the 'who' command several times to see if this changes?
Just a thought.
J. Haynes
Denver, CO

Similar Messages

  • Executing "at" command of UNIX through JSP

    Friends,
    1. "at" command in UNIX execute Unix command at a scheduled time. 2. For each user there will be a table maintained internally which can be accessed by "at" with "-l" argument.
    3. A mail will be sent to the owner with the output of the commands as a message.
    I tried to run the "at" command of Unix in JSP, which gets succesfully executed in Oracle 10g App Server container (Installed in Solaris machine). I have tested the successful execution of command with the log file. But I haven't got any mail for the output. If anyone had any idea, please help me.
    The code I have wtitten is
    Runtime rt = Runtime.getRuntime();
    Process proc = rt.exec(new String[] {"sh","-c","at 2115 Dec 7 < /export/home/usr1/abc.sh"});
    InputStream stderr = proc.getErrorStream();
    InputStreamReader isr = new InputStreamReader(stderr);
    BufferedReader br = new BufferedReader(isr);
    String line = null;
    logger.info("<ERROR>");
    while ( (line = br.readLine()) != null)
    logger.info(line);
    logger.info("</ERROR>");
    int exitVal = proc.waitFor();
    logger.info("Process exitValue: " + exitVal);
    My doubts are:
    1. Who is the owner of the output of "at"command, which gets executed under Oracle 10g App Server container?
    2. If no one is the owner, then where will the output of "at" command will go?
    3. Is there any other way to execute "at" command of UNIX in java program? If so, then please help me.
    Thanks in advance.
    regards
    Nandha Kumar.M

    I would imagine the process call out will be under the guise of the process owner of the OC4J instance which executing the call.
    Have you seen anything different.
    cheers
    -steve-

  • Executing amadmin command in Unix box.  --*** Urgent*****

    I tried to execute following command on Unix machine:
    ./amadmin -u uid=amAdmin,ou=People,o=ievesp.net -v -w "password"
    -s /etc/opt/SUNWam/config/xml/amUser.xml
    I am getting following error message:
    Info 112: Entering ldapAuthenticate method!
    Success 0: No Exceptions! LDAP Authentication success!
    Info 113: Calling SSO method!
    Error 9: Operation failed: null
    Please tell me why I am getting this Error?
    Where can I find log files?
    Can anyone please help me on this?

    I suggest that you post this question to the Access Manager Forum...
    <http://swforum.sun.com/jive/forum.jspa?forumID=79>
    Regards,
    Ludovic.

  • [solved] who command doesn't show X server session

    Hi there,
    shouldn't the `who` command show all logged in user sessions, including my X server session?
    However, who only shows my tty1 session:
    [orschiro@thinkpad]$ who
    orschiro tty1 2013-10-25 17:01
    What is the output of who on your system?
    Last edited by orschiro (2013-10-27 20:21:32)

    Alright. The point is, what do I need to do in order that who shows my X session?
    I tried export DISPLAY=:0 but this doesn't add :0 to the who command listing.
    The reason I am asking is that I want to use the following dispatcher script which queries for :0, assuming that who shows the display variable.
    #!/bin/sh
    INTERFACE=$1 # The interface which is brought up or down
    STATUS=$2 # The new state of the interface
    case "$STATUS" in
    up) # $INTERFACE is up
    USERS=$(ps -o user --no-headers -C dropbox)
    killall dropbox
    for user in $USERS; do
    su -c "DISPLAY=$(who | sed -e "/$user/! d;/pts/d;s/^.*[^0-9]\\(:[0-9.]\\+\\).*$/\\1/p;d" | head -n1) dropboxd &" $user
    done
    down) # $INTERFACE is down
    esac
    Last edited by orschiro (2013-10-27 07:04:25)

  • Use of r3trans -d command in UNIX related to Database...?

    Hi gurus,
                   What is the use of r3trans -d command in UNIX related to ORACLE Database...?
    thanks in advance.
    Regards,
    BBR.

    Hi ,
    R3trans-d is used to check the whether DB is active or not .Along with R3trans-d to check db active or not , I give you some more command to check.
    Following methods used to check whether DB is active or not :
    1. ps -ef |grep ora
    2. ps -ef |grep ora_
    3. ps -ef |grep pmon
    4. R3trans -d ; give RC - 0000 means active other than 0000
    is error
    5. in Brtools 1.Instance Management, 6 - Show instance
    status, 3-Database instance, give the instance name i mean
    Database Name and press continue....give the status
    6. we can also check for SQL
    SQL> select status from v$instance;
    STATUS
    OPEN
    Hope this will help u out.
    Thanks and Regards,
    Arun Rathour

  • Executing amadmin command in Unix box.

    I tried to execute following command on Unix machine:
    ./amadmin -u uid=amAdmin,ou=People,o=ievesp.net -v -w "password"
    -s /etc/opt/SUNWam/config/xml/amUser.xml
    I am getting following error message:
    Info 112: Entering ldapAuthenticate method!
    Success 0: No Exceptions! LDAP Authentication success!
    Info 113: Calling SSO method!
    Error 9: Operation failed: null
    Please tell me why I am getting this Error?
    Where can I find log files?
    Can anyone please help me on this?

    Following is the error message that is recorded at LDAP logs:
    [27/Jun/2006:06:31:01 -0400] conn=145220 op=-1 msgId=-1 - fd=83 slot=83 LDAP connection from <<ip address>> to <<ip address>>
    [27/Jun/2006:06:31:01 -0400] conn=145220 op=0 msgId=1 - BIND dn="uid=amAdmin,ou=People,o=seccap.net" method=128 version=3
    [27/Jun/2006:06:31:01 -0400] conn=145220 op=0 msgId=1 - RESULT err=0 tag=97 nentries=0 etime=0
    dn="uid=amadmin,ou=people,o=seccap.net"
    [27/Jun/2006:06:31:01 -0400] conn=145220 op=1 msgId=2 - UNBIND
    [27/Jun/2006:06:31:01 -0400] conn=145220 op=1 msgId=-1 - closing - U1
    [27/Jun/2006:06:31:01 -0400] conn=145220 op=-1 msgId=-1 - closed.
    [27/Jun/2006:06:31:03 -0400] conn=145221 op=-1 msgId=-1 - fd=83 slot=83 LDAP connection from <<ip address>> to <<ip address>>
    [27/Jun/2006:06:31:03 -0400] conn=145222 op=-1 msgId=-1 - fd=88 slot=88 LDAP connection from <<ip address>> to <<ip address>>
    [27/Jun/2006:06:31:03 -0400] conn=145222 op=0 msgId=3 - BIND dn="" method=128 version=3
    [27/Jun/2006:06:31:03 -0400] conn=145222 op=0 msgId=3 - RESULT err=0 tag=97 nentries=0 etime=0 dn=""
    [27/Jun/2006:06:31:04 -0400] conn=145221 op=-1 msgId=-1 - closing - B1
    [27/Jun/2006:06:31:04 -0400] conn=145222 op=-1 msgId=-1 - closing - B1
    [27/Jun/2006:06:31:04 -0400] conn=145222 op=-1 msgId=-1 - closed.

  • Using the MAIL command of UNIX through JAVA

    Can any one give me a lead or example on how to call the MAIL command of UNIX to send mails using JAVA.

    Use java.lang.Process for it. See the code below, it will
    help you understand how it would be possible.
    Process p = Runtime.getRuntime().exec("mail username");
    in = p.getInputStream();
    out = p.getOutputStream();
    Now stdout will be available on 'in' for reading e.g.
    you can expect Subject: and Cc: lines on linux box.
    and write data/message to 'out'. It will be the message
    which you will wrile in normal use of mail on stdin.
    Good Luck
    Mumtaz Siddiqui

  • LabVIEW Equivalent of 'Whos' command in MATLAB

    Hi 
    Similar to 'Whos' command in MATLAB I wanted to list all the constant and controls (if possible) I used in my LabVIEW code. Does anyone know if its possible with any additional code or Toolkit. 
    Thanks in advance. 
    Thanks & Regards,
    Kunal Raithatha.
    CTD - CLAD (I wish I can take off that A, and maybe use it later to replace D :-)
    Easy Tip :- "To copy an image to a VI icon, drag the image file and place it on the icon
    located in the upper right corner of the front panel or block diagram" ...If you know any
    more reply back.

    Smercurio_fc
    Pupose is to enlist name and value of constants n controls I used in quite a big VI, values of the constants are often manipulated to adjust the requirement. It will be good at the end if I can print them altogether. 
    Thank You.
    Thanks & Regards,
    Kunal Raithatha.
    CTD - CLAD (I wish I can take off that A, and maybe use it later to replace D :-)
    Easy Tip :- "To copy an image to a VI icon, drag the image file and place it on the icon
    located in the upper right corner of the front panel or block diagram" ...If you know any
    more reply back.

  • HT1911 How do i change/find the answer to one of the questions like; "who is your favorite teacher?"

    How do i change/find the answer to one of the questions like; "who is your favorite teacher?" I need to be able to buy stuff off of my computer.

    Go to:
    https://appleid.apple.com/
    Click "Manage My Account", sign in, and go to the Password and Security section. Answer the security questions and you'll be taken to a screen where you can then change them. If you've forgotten your answers, there should be a link just under the security questions fields where you can have a reset email sent to your Rescue email address. If the link for the email doesn't appear, as can happen if you didn't set a rescue email address or (apparently) have a .Mac email address, go here:
    http://www.apple.com/emea/support/itunes/contact.html
    to report the issue to the iTunes Store.
    Regards.
    Forum Tip: Since you're new here, you've probably not discovered the Search feature available on every Communities page, but next time, it might save you time (and everyone else from having to answer the same question multiple times) if you search a couple of ways for a topic, both in the relevant forums and in the Apple Knowledge Base, before you post a question.

  • Run Unix command / Run Unix shell script from Forms9i

    Hi,
    I have a requirement to run Unix command and Unix shell scripts from Forms9i.
    I know HOST command cannot be used directly. I also know we can create some JAVA stored procedure to perform the task, but I don't want to create any JAVA stored procedure as there are some security concerns.
    Please point me towards any other way to achieve the same.
    I would really appreciate your help.
    Thanks,
    Kumar

    There is no reason why HOST can't be used. This is what it is for. As for using Java, it is not a stored procedure that you would be using, it would be imported Java (imported into the form).
    The best way to use the HOST command is to call a script (.sh) rather than calling a Unix command directly. This is because HOST will not pick up environment variables set at the system level. So the script would first need to set the necessary environment variables then call the desired commands.

  • HT1918 i forget my answer question please who i can rest it ?

    please  solve my problem   i forget my answer question please who i can rest it

    Welcome to the Apple Community.
    Start here, and reset your password, you will receive an email with your new password, then go to manage your account > Password and Security and change your security questions.
    If that doesn't help you might try contacting Apple through iTunes Store Support

  • Feature of JSP for access command of UNIX

    hello sir ,
    I interesting JSP for developer application on internet . Now , I would like feature of JSP that
    what JSP use command for access comand of UNIX example ls ,mail ,bg (background process) and
    return result of command example mail, bg (background process) to JSP ? please tell me too . Thank you very much.

    thank you for reply question to me
    Please talk detail about runtime & process class to me please and example for JSP call command UNIX "mail" via JSP :-)

  • Unable to run certain commands on unix using the Runtime.getRuntime().exec(

    Hi Folks,
    I am unable to get any output if I try : Runtime.getRuntime().exec("who am i")
    however for Runtime.getRuntime().exec("pwd") I am getting the present working directory path !!!
    if I give Runtime.getRuntime().exec("echo $PATH") then instead of printing the path it prints $PATH instead !!! similarly it is unable to understand any of the special unix characters such as " or ' & is assuming it to be a literal instead.
    Any idea why this is happening ?? and any solution for the same
    regards
    Anand

    I don't think that Runtime.getRuntime().exec() spawns a shell it just executes the file that is specified in the string. ecause of this you can not use commands that are built-in in the shell directly nor use special shell characters. You must spawn your own shell, try something like this:
    Runtime.getRuntime().exec("sh");I'm sure you can add some switch to sh to execute a command by I am not using unix myself so I don't know how. Someone else have to help you with that. You can allways read the man-pages.

  • Pass commands to UNIX shell opened in Windows XP OS

    I am currently running Labview 7.1 on a Windows XP box.  I use Exceed to open a UNIX shell to do work in UNIX from my windows machine.  I can open the UNIX shell with the sys exec vi but how do I pass commands to the UNIX shell I opened?

    Purp1eOne wrote:
    I went to the sourceforge site to take a look and started the install process but after looking at the install instructions it says I need a run time engine of 8 or greater which I don't have:
    Kind of a novice here but I don't think this will work with LabView 7.1, will it?
    Also make sure you have
    the LabVIEW 8.2.1 Run-Time Engine installed.
    View Member Profile
    ipsmenu.register( "post-member-26", '', 'popmenubutton-new', 'popmenubutton-new-out' );
    Jul 17 2006, 08:53 PM
    Post
    #1
    Group: JKI Team
    Posts: 167
    Joined: 10-July 06
    Member No.: 7
    Note: The LabVIEW 8.0.1 and 8.2.1 run-time engines can co-exist
    together with the LabVIEW 8.5 (and newer) run-time engine. You still
    need to install the run-time engine's listed below to use VIPM, even if
    you have a newer version of LabVIEW installed.
    VIPM 1.1 and 2.0
    VIPM 1.1 and 2.0 require the LabVIEW 8.2.1 run-time engine installed on your machine.
    See also:Where do I get the LabVIEW 8.2.1 Run-Time Engine?
    VIPM 1.0
    VIPM 1.0 requires the LabVIEW 8.0.1 run-time engine installed on your machine.
    See also:
    Smercurio is right, and their is no OpenG package for the newer VIs so you will actually want to get them directly from CVS.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Is there an ARD command or Unix command that I can send to reset the desktop background image to default?

    I was forced to create a local user with an automatic login on all of the machines in the building. I listed off many various issues that could come arise by doing this but was tuned out. Now people are changing all of the desktop backgrounds to some pretty inappropriate images. I forewarned the person ordering this that this may be one of the many issues that would arise when doing away with our server based logins, and now I am charged with fixing every desktop every time someone changes it to something inappropriate.
    Is that an Apple Remote Desktop command or a Unix command that I can send through ARD v3.5.3 to the machines to reset the desktop background image to the default Aqua Blue jpeg image located in the /MacintoshHD/Library/Desktop\ Pictures/Aqua\ Blue.jpg.
    The machines that I am dealing with have OS X 10.4.11, OS X 10.5.8, OS X 10.6.8, and OS X 10.7.4 installed on them, but the OS X 10.4.11 machines are the ones that are creating the biggest issue so I would like to deal with those first.

    Ya, I'd love to have the computers connected to the Xserver, unfortunately against my heeding, I was ordered to take them off of the Xserver, so they only have a local account that automatically logs in on startup, and even though I have Parental Controls set, I can not stop them from going to Safari, selecting an inappropriate image and setting it as the background, so now I’ve been ordered to fix all of the backgrounds that people are messing with.
    My Xserver is running OS X 10.4.11 Server Edition. Yes, I would love a new server, but that’s not happening due to budget cuts.
    So what I am hoping for is a command that I can put into Apple Remote Desktop v3.5.3 and push out to all of the computers via its Unix commands and reset all the desktops to their default image.

Maybe you are looking for

  • I just want my RAM to run at correct Latency

    Well another topic ragarding the problem the Cas Latency I bought a 2Gb Kit 800 Mhz 4-4-4-12 (TeamGroup) If i let everything auto as it has been said  it defaults to 533 Then I go to Cell Menu and set them at 800 Mhz..Ram Voltage  2.0 V    & SPD Auto

  • Unable using    hz_cust_account_site_v2pub.update_cust_site_use

    Hi All, I am facing an issue in using an API hz_cust_account_site_v2pub.update_cust_site_use. I want to update WAREHOUSE_ID from the table HZ_CUST_SITE_USES_ALL (R12), the below code is what i am using the procedure shows as completed successfully bu

  • Send HTML emails

    I am sending an HTML email. HTML created in dremaweaver, and sent through Outlook Express... it all works fine... The design looks good. The images are there. It all works fine except one thing: THE PROBLEM: On the recieving end, the images also appe

  • Validate text in form

    I have a form that the user input has to fill. I would like this behaviour: the user input insert the text in a field (it can be a textfield) and when it loose the focus start to valide the text just inserted (it's control just if is only a string, o

  • Where do I download Adobe Acrobat Pro XI Trial?

    Please help, I cannot download the Trial.When I click download nothing happens, the screen doesn't even change and the computer does nothing. I don't get any signs. gracias,