Why the script doesn't work

I installed solaris 8 and got a problem. I can use unix commands like ls, mkdir, cp, mv,.... But when I created a script and try to run it, I got the message says "That command doesn't exist." I check the persion and owner, they are OK. Also I use admintool to add a user, I try to put a user's home directory /usr/eric/, when I submit it, I got message "don't have permission" (I am a super user). When I exit from admintool and check /etc/passwd file, that user is already there.
anyone response is appreciate.

Hi,
Is your PATH variable set to point to the directory
which has this script ?
Set the PATH variable and try (if itis not already set).
Pls follow the steps below:
o In your shell, set the environment variable PATH as:
On Bourne/Korn shell:
#PATH=/usr/bin:/usr/sbin:.
On C-shell:
%setenv PATH /usr/bin:/usr/sbin:.
Append (with a ":" prefix) the directory having your script to the
above PATH variable.
You can make this change permanent by having this variable set
through your ".profile" file for sh and ksh, and ".cshrc" for
csh (in your home directory).
Please refer to man pages of login(1) for more information.
Thanks,
Gopinath.
Sun - DTS.

Similar Messages

  • Why the preloader doesn't work in IE 8 but works in FireFox?

    Why the preloader doesn't work in IE 8 but works in FireFox?
    Please see the attached files.  Thanks in advance.

    Why doesn't the preloader work in IE8?
    What's "virtual sandbox"?

  • Why the imsg doesn't work without a sim card with iOS 7???

    Why the imsg doesn't work without a sim card with iOS 7???

    If it worked for you using iOS 6, then it appears iOS 7 has made some changes.  Was it working before?

  • Hi there, i have a ipod nano general 7, just used one year. Now can't charge battery. When charging, the icon shows full power, but disconnect it. It becomes dark, no power. Why, the battery doesn't work ?

    I've a ipod nano general 7, I've just used it one year. Now, I can't charge the battery. When charging, the icon shows full power. But when I disconnect, the ipod becomes dark, no power is keeped. Why, the battery doesn't work ? the life of my ipod's battery is too short ? 

    Howdy tamsg,
    Welcome to Apple Support Communities.
    The article linked below provides a lot of great troubleshooting tips that can help you resolve the issue with your iPod nano charging or displaying a blank black screen.
    iPod nano (7th generation): Hardware troubleshooting - Apple Support
    So long,
    -Jason

  • Why the wifi doesn't work after the upgrade to iOS 5?

    The problem is that after the upgrade to iOS 5 the wifi doesn't work. I mean, iPad is connected to the wifi but not to the internet and also the connection on the other device doesn't work. So I had to turn off the router and then turn it on.

    Try a hard reset first to see if that does any good.  To do this, press and hold both the Sleep/Wake and Home buttons together long enough for the Apple logo to appear.
    If no luck with that, you'll need to manually connect your iPod to your iTUnes library in recovery mode using the instructions in the Apple support document below. Doing so will allow you to bypass the passcode and restore the iPod.
    iOS: Unable to update or restore
    B-rock

  • Who knows why the "repaint()"doesn't work when ....?

    I use a "while(threadgroup.activeCount()!=0){} "to block the sentence below
    from being excecuted before I finish the thread above, however since this "while"
    the repaint() in the thread above doesn't work , but I have evidence that the thread
    is really going on ( I use Sytem.out.print() to prove this)

    I'm not sure I follow. Try providing a snippet of the relevant code, and we'll see if anybody on the forum can figure it out for you.

  • Why the style doesn't work?

    It's my very second test using Flex.
    quote:
    <mx:Application ...>
    <mx:Style>
    Text{
    backgroundColor:#FFFFFF;
    </mx:Style>
    <mx:HBox>
    <mx:Text />
    </mx:HBox> ...
    </mx:Application>
    This code doesn't work. I'd like to set my text control's
    background to white. Why is it wrong?
    Thanks.

    Because mx:Text does not have a backgroundColor
    style/property.
    Tracy

  • Why the code doesn't work???

    addWindowListener(new WindowAdapter(){public void windowClosing(){System.exit(0);}});
    when I press the x button ,it doesn't work as expected!!

    What are you expecting it to do? I should close the window and then exit the application. This is the code I use for all my applications and it does exactally that. Are you using it with a JFrame? or a JDialog?
    JFrame test = new JFrame();
    test.addWindowListener(new WindowAdapter() {
                public void windowClosing(WindowEvent evt) {
                    System.exit(0);

  • Why the comparison doesn't work?!

    my code is:
    <text>
      <boundAttribute name="text">
       <if>
         <comparison  type="greaterThanOrEquals">
           <fixed javaType="int" text="10"/>
           <fixed javaType="int" text="8"/>
         </comparison> 
         <fixed javaType="string" >aaaa</fixed>
         <fixed javaType="string">bbbb</fixed>
       </if>
      </boundAttribute>
    </text>whenever the comparison type is "greaterThan" or "lessThan" ,the result always is bbbb.
    i use jdev10g.
    thanks.

    thanks for your answer.it does work well.
    however,i want to compare a value of pageProp and a value of bc4j:attrValue,like following:
    <text>
      <boundAttribute name = "text">
        <if>
           <comparison type="greaterThanOrEquals">
              <dataObject select="SetPayDate" source="${uix.pageProp}"/>
              <bc4j:attrValue name=DateDue"/>
           </comparison>
        <fixed javaType="string"> aaa </fixed>
        <fixed javaType="string"> bbb </fixed>
        </if>
       </boundAttribute>
    </text>
    i have ever seen that it worked well. The second day,it didn't work. :(.
    thanks.best regards.

  • Why the picking doesn't work

    Hi everybody:
    i am working on a java 3d demo which uses picking as the collision avoidance utility.the code below is quite simple but in fact it cant pick anything. the problem has made me crazy for quite a long time and i still not find out the correction answer.if anyone could solve this problem ,i will be very thankful~ :)
    public class TestBound extends Applet {
    BranchGroup root;
    public void createBranchGraph() {
    root = new BranchGroup();
    TransformGroup rootTG = new TransformGroup();
    rootTG.addChild(new ColorCube(0.4));
    root.addChild(rootTG);
    //root.setPickable(true);
    //root.setCapability(Node.ALLOW_BOUNDS_READ);
    //root.setCapability(Node.ENABLE_PICK_REPORTING);
    root.compile();
    public TestBound() {
    setLayout(new BorderLayout());
    Canvas3D canvas = new
    Canvas3D(SimpleUniverse.getPreferredConfiguration());
    add("Center",canvas);
    createBranchGraph();
    SimpleUniverse su = new SimpleUniverse(canvas);
    su.getViewingPlatform().setNominalViewingTransform();
    su.addBranchGraph(root);
    //System.out.println(new BoundingBoxGenerator(scene).getBounds());
    public static void main (String[] args) {
    TestBound tb = new TestBound();
    new JMainFrame (tb,256,256).setVisible(true);
    PickTool tool = new PickTool(tb.root);
    tool.setShapeRay(new Point3d(1000,0,0),new Vector3d(-1,0,0));
    System.out.println(tool.pickAny() == null);
    the picking ray should intersect with the color cube,but in fact it cant pick anything and returns null always.

    Have you tried reducing the distance to the point3d in your picktool - it looks like it is outside of the bounds for the cube. Have you looked at the picking demos that you downloaded with the j3d distribution? They are often a good starting point for picking up this kind of technique.

  • Why the dispose() doesn't work

    I have these code which pop up a dialog window for adding new record to my table but after that the dialog box stay there eventhough I call the dispose() funtion for closing dialog window. How can I make it work.
    public void AddRecord()
    JButton Done;
    final int r = Postings.getRowCount();
    final UnitDiaryPosting udp = new UnitDiaryPosting(editFrame);
    Done = udp.getAction();
    Done.setText("Done");
    Done.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent e)
    String t[] = udp.getInformation();
    mytable.addRow(t);
    mytable.fireTableRowsInserted(0,r+1);
    udp.dispose();
    }

    dispose () does not close windows! dispose () attempts to release resources held by the window. Try calling hide () or setVisible (false) before calling dispose ()

  • Why the autobrigtness doesn't work as it should, all it does is just turns brightness on 10% and that all

    When the keyboard will be improved because android has swiftkey 3 and its way better than this one

    In this line , it was returning ORA-00904 but it was fixed by using =: operator instead of = operator.
    There's no "=:" operator.
    The colon character ':' is used to defined a bind variable (placeholder) in the query string.
    The value for that variable must be passed ("bound") after parse and before execute step so that the query is executed correctly. That's what the USING clause does in your code.
    So, it works as =+  operator trick that is defined in other high programming language such as C# ...etc.
    Example:  
    int a = 0; 
    a =+ 1;    //  a was declared as an integer that has value 0 
            // then  we tried to increment by 1 or add by one 
             // so it would be  a=a+1;   
                    //which is  a=0+1; 
    Does it work the same?
    No, nothing to do with that.

  • Why the "useradministrator" doesn't work anymore?

    Hi guys,
    As administrator I got the the error in "user administrator":
    "A check if users can be created failed. The UME configuration might be inconsistent. Check your Security Policy settings (Especial "Maximum Length of Logon ID") and your Persistence Configuration."
    As normal user, I can not see any iview in "user administrator" any more,what is the problem?
    I use a method "GroupFactory.invalidateCache();" in one of my application. Has this something to do with "user administrator"?
    Thanks for any tip!
    Regards,
    Liying

    Hi,
    Since I upgraded from SP stack 9 to SP stack 10 I get the same error in the UME administration. The two buttons for user creation are greyed out. The upgrade could be the cause. I'm also seraching for a solution.
    Joerg

  • Count(*) in the loop doesn't work and I really don't know why...

    Hello,
    I can't figure out why the following doesn't work. I cannot debug for I do not have privileges on this server.
    The execution always fails on bolded line. If I substitute the variable with the table name itself it works. The variable is properly populated in each of the iterations as I can see it by using dbms_output package. The small but may be important detail may be I am connected as user A but the tables are in the schema B. However I can list the tables and their columns in all_tab_cols view and there are synonyms made in my schema which allow me to access the B tables without prefixing them.
    I get the error:
    Error report:
    ORA-00900: invalid SQL statement
    ORA-06512: at line 26
    00900. 00000 - "invalid SQL statement"
    *Cause:   
    *Action:
    I ran out of ideas and I do not have access to any of the Oracle instance to be able to debug right now.
    Variable type for v_tables is wrong? I do not have some magic privilege to use execute immediate with variable?
    Oracle server has a bad day today?
    The crap is 11.1.0.7 if it has anything to do with my problem.
    Please help if you can.
    Grzegorz
    declare
    v_number number := 646989;
    v_current_table nvarchar2(50);
    v_itemno number;
    type t is table of nvarchar2(50);
    v_tables t;
    begin
    dbms_output.put_line('Working...');
    select table_name bulk collect into v_tables from all_tab_cols where column_name = 'ITEMNO' order by table_name;
    for i in 1 .. v_tables.count loop
    dbms_output.put_line('Number: ' || i);
    v_current_table := v_tables(i);
    <b>execute immediate 'select count(*) from ' || v_current_table || ' where itemno = :a' into v_itemno using v_number;</b>
    if (v_itemno > 0) then
    dbms_output.put_line('Current table contains specific ITEMNO: ' || v_current_table);
    end if;
    end loop;
    end;

    In SQL Plus run this and see what SQL is your code returning. Then execute the SQL individually.
    set serveroutput on
    declare
         v_number number := 646989;
         v_current_table nvarchar2(50);
         v_itemno number;
         type t is table of nvarchar2(50);
         v_tables t;
         lSqlString varchar2(20000);
    begin
         select table_name
           bulk collect into v_tables
           from all_tab_cols
          where column_name = 'ITEMNO'
          order by table_name;
         for i in 1 .. v_tables.count loop
              v_current_table := v_tables(i);
              lSqlString := 'select count(*) from ' || v_current_table || ' where itemno = :a';
              dbms_output.put_line(lSqlString);
              --execute immediate  lSqlString into v_itemno using v_number;
         end loop;
    end;

  • Just bought a pair of earpods for the shuffle 3rd gen the first the remote doesn't work so i exchanged them and these don't work either! I already checked that they are compatible and should work! Any ideas or advice?

    Hi I recently bought a pair of earpods for my 3rd Gen ipod shuffle only the remote does not work, so i exchanged them from an unhelpful member of staff from Currys who said the problem could be my device. So i just tested the new ones and the same problem again! I already checked that they are compatible so i don't understand why the remote doesn't work. Will be greatful with any advice or answers on this one. Thanks!

    Actually they are not compatible: http://store.apple.com/us/product/MD827LL/A/apple-earpods-with-remote-and-mic

Maybe you are looking for

  • Error while creating sales order for a new company code

    Hello SD Gurus, The client wanted us to create a new Company Code, Plant, and Sales Organization. We created them. I extended the customer and material in QAS. Now, I'm trying to create one sales order in QAS but the system is throwing one error: "Ma

  • URL for configuration in HTTP SUBMIT button --urgent

    Hi All,    I am in development of a urgent interactive form and I am new this. My aim is to build a interactive form ( SFP) and then place a HTTP Submit button and post the data back . I went through the documentation and understood that W can send d

  • Is Firefox Sync compatible with x-marks, or do they both do the same thing?

    X-marks has recently made a reappearance on my laptop, and is causing havoc with my bookmarks; on both the laptop and desktop. Whilst x-marks "was away", Firefox Sync was installed and I am wondering if the two are compatible, or competitive; whether

  • MobileMe warning dialogue will not disappear

    When I launch Aperture, I get the warning dialogue box - "MobileMe has been discontinued.  Aperture will move albums you have published to MobileMe Gallery into the Albums section of your library to preserve them". However, neither the "Learn More" n

  • Subject decoding problem with dash '-'

    When trying to decode a raw email with the following subject with MimeUtility the charactersequence =96 is not decoded correctly. When printed to the console a strange square box is drawn. When the same string is persisted to our database, the box en