Professional Web Applications Themes

cron & the mount command - SCO

I have a NFS Mount command in a sh file for a NFS Backup. Problem is .. The mount doesn't seem to be working .. but if I run the sh file is run manually .. it works. The cron is run as root (I think). Any ideas why it might not be working? (elwood_1 - the sh file) ----------------- cd / mount 192.168.0.244:/elwood1 /snapE1 /usr/lib/edge/bin/edge.nightly -H unix.com:schj/elwood1 umount /snapE1 -----------------...

  1. #1

    Default cron & the mount command

    I have a NFS Mount command in a sh file for a NFS Backup.

    Problem is .. The mount doesn't seem to be working .. but if I run the
    sh file is run manually .. it works. The cron is run as root (I
    think).

    Any ideas why it might not be working?

    (elwood_1 - the sh file)
    -----------------
    cd /
    mount 192.168.0.244:/elwood1 /snapE1

    /usr/lib/edge/bin/edge.nightly -H unix.com:schj/elwood1

    umount /snapE1
    -----------------

    Douglas Guest

  2. #2

    Default Re: cron & the mount command

    Douglas Luurs made comment on Tue Nov 11 16:29:46 2003 : 

    Use /etc/mount ..... and /etc/umount .....
    or specifically set the PATH variable at the top of the script.

    /etc is NOT in the default path from cron jobs

    If this is OSR 5.0.7 you can specify the path in /etc/default/cron


    Tom


    --
    ================================================== ======================
    Tom Melvin demon.co.uk http://www.tkrh.demon.co.uk
    Veterinary Solutions Ltd Sysop Compuserve Unixforum
    ================================================== ======================
    Tom Guest

  3. #3

    Default Re: cron & the mount command

    On 11 Nov 2003 12:13:31 -0500, Tom Melvin <demon.co.uk>
    wrote:
     
    >
    >Use /etc/mount ..... and /etc/umount .....
    >or specifically set the PATH variable at the top of the script.
    >
    >/etc is NOT in the default path from cron jobs
    >
    >If this is OSR 5.0.7 you can specify the path in /etc/default/cron
    >
    >
    >Tom[/ref]

    DOH! ... Forgot about the cron pathing issue. Thanks
    Douglas Guest

Similar Threads

  1. Command to manually mount USB external harddrive?
    By linuxquestion@yahoo.com in forum Linux Setup, Configuration & Administration
    Replies: 7
    Last Post: January 11th, 11:04 AM
  2. RUN/execute a Command-Line command from an ASP page
    By Lucas Cowald in forum ASP.NET Building Controls
    Replies: 1
    Last Post: October 22nd, 04:26 PM
  3. Replies: 15
    Last Post: September 29th, 05:17 PM
  4. Windows Explorer Right Click Command (+ Custom Command Script)
    By lennySydney webforumsuser@macromedia.com in forum Macromedia Fireworks
    Replies: 1
    Last Post: September 6th, 07:59 PM
  5. Replies: 1
    Last Post: August 19th, 02:26 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139