Thread: Help for the Error 124

Started: 2018-05-28 22:15:10
Last activity: 2018-06-01 00:21:41
Topics: SAC Help
Alessandro Todrani
2018-05-28 22:15:10
Hi,
sorry for the question.

I'm using your SAC programm for my university thesis, and i have a problem
with ERROR 124. The message that appear is: Can't change to the directory.
Check your permission.

How can i resolve this error? It doesn't always happen, but when i have
this error i can't go on.

I'm waiting your answer.

Thank you so much,
Best regards,

Alessandro.

  • Milton Plasencia
    2018-05-30 01:26:49
    Hi Alessandro,

    What command use?

    sac> cd new_dir

    should to do the trick if you use sac version 101.6a
    if you want use other command of the operating system,
    you need use:
    sac> sc command
    where sc stand by System Command

    But, also check the permission of directory...

    My Dirs in general have permissions:
    drwxr-xr-x

    HTH,

    M.



    ************************************
    Milton P. PLASENCIA LINARES

    Centro di Ricerche Sismologiche (CRS)
    OGS - Istituto Nazionale di Oceanografia e di Geofisica Sperimentale

    Borgo Grotta Gigante 42/C
    (34010) Sgonico - Trieste - Italia
    Tel: +39 040 2140 156 (Udine)
    Tel: +39 040 2140 256 (Trieste)
    Cel.: +39 331 6481 935

    E-mail: mplasencia<at>inogs.it

    GPG Key: 22FCFFA8

    ASAIN (Antarctic Seismographic Argentinean Italian Network)
    **************************************

    On 29 May 2018 at 18:08, Alessandro Todrani <a.todrani<at>gmail.com> wrote:

    Hi,
    sorry for the question.

    I'm using your SAC programm for my university thesis, and i have a problem
    with ERROR 124. The message that appear is: Can't change to the directory.
    Check your permission.

    How can i resolve this error? It doesn't always happen, but when i have
    this error i can't go on.

    I'm waiting your answer.

    Thank you so much,
    Best regards,

    Alessandro.


    ----------------------
    SAC Help
    Topic home: http://ds.iris.edu/message-center/topic/sac-help/ |
    Unsubscribe: sac-help-unsubscribe<at>lists.ds.iris.edu

    Sent from the IRIS Message Center (http://ds.iris.edu/message-center/)
    Update subscription preferences at http://ds.iris.edu/account/profile/



    • Alessandro Todrani
      2018-05-31 16:39:49
      Hi,
      thank you for your fast response.

      When i enter in a folder i use a command : cd 'name_folder'.
      In most cases i can enter without problems, instead in some cases the
      programm send me an error message (error 124).
      If i quit and restart sac the error disappear.
      It is a bug ?

      Thank you very much.
      Best regard,

      Alessandro.

      2018-05-29 18:28 GMT+02:00 Milton Plasencia <mplasencia<at>inogs.it>:

      Hi Alessandro,

      What command use?

      sac> cd new_dir

      should to do the trick if you use sac version 101.6a
      if you want use other command of the operating system,
      you need use:
      sac> sc command
      where sc stand by System Command

      But, also check the permission of directory...

      My Dirs in general have permissions:
      drwxr-xr-x

      HTH,

      M.



      ************************************
      Milton P. PLASENCIA LINARES

      Centro di Ricerche Sismologiche (CRS)
      OGS - Istituto Nazionale di Oceanografia e di Geofisica Sperimentale

      Borgo Grotta Gigante 42/C
      (34010) Sgonico - Trieste - Italia
      Tel: +39 040 2140 156 (Udine)
      Tel: +39 040 2140 256 (Trieste)
      Cel.: +39 331 6481 935

      E-mail: mplasencia<at>inogs.it

      GPG Key: 22FCFFA8

      ASAIN (Antarctic Seismographic Argentinean Italian Network)
      **************************************

      On 29 May 2018 at 18:08, Alessandro Todrani <a.todrani<at>gmail.com> wrote:

      Hi,
      sorry for the question.

      I'm using your SAC programm for my university thesis, and i have a
      problem with ERROR 124. The message that appear is: Can't change to the
      directory. Check your permission.

      How can i resolve this error? It doesn't always happen, but when i have
      this error i can't go on.

      I'm waiting your answer.

      Thank you so much,
      Best regards,

      Alessandro.


      ----------------------
      SAC Help
      Topic home: http://ds.iris.edu/message-center/topic/sac-help/ |
      Unsubscribe: sac-help-unsubscribe<at>lists.ds.iris.edu

      Sent from the IRIS Message Center (http://ds.iris.edu/message-center/)
      Update subscription preferences at http://ds.iris.edu/account/profile/




      ----------------------
      SAC Help
      Topic home: http://ds.iris.edu/message-center/topic/sac-help/ |
      Unsubscribe: sac-help-unsubscribe<at>lists.ds.iris.edu

      Sent from the IRIS Message Center (http://ds.iris.edu/message-center/)
      Update subscription preferences at http://ds.iris.edu/account/profile/



      • George Helffrich
        2018-06-01 00:21:41
        Dear All -

        Using the system’s ‘cd’ command inside SAC is not wise because its behavior is ambiguous and unpredictable. If you want that command to change the default file search directory for SAC commands, it probably will not work. SAC runs any system command in a sub-shell, and, by design in Unix, generic sub-shells do not affect the settings in their parent shells. So it should not, and probably does not affect SAC’s file search path.

        SAC could try to be helpful and parse the “cd” command itself, but this won’t work in many cases, for example when you have aliased the “cd” command in your shell to do something else in addition to changing directory. Hence, you should not rely on it working reliably, if at all.

        On 31 May 2018, at 16:40, Alessandro Todrani <a.todrani<at>gmail.com> wrote:

        Hi,
        thank you for your fast response.

        When i enter in a folder i use a command : cd 'name_folder'.
        In most cases i can enter without problems, instead in some cases the programm send me an error message (error 124).
        If i quit and restart sac the error disappear.
        It is a bug ?

        Thank you very much.
        Best regard,

        Alessandro.

        2018-05-29 18:28 GMT+02:00 Milton Plasencia <mplasencia<at>inogs.it>:
        Hi Alessandro,

        What command use?

        sac> cd new_dir

        should to do the trick if you use sac version 101.6a
        if you want use other command of the operating system,
        you need use:
        sac> sc command
        where sc stand by System Command

        But, also check the permission of directory...

        My Dirs in general have permissions:
        drwxr-xr-x

        HTH,

        M.



        ************************************
        Milton P. PLASENCIA LINARES

        Centro di Ricerche Sismologiche (CRS)
        OGS - Istituto Nazionale di Oceanografia e di Geofisica Sperimentale

        Borgo Grotta Gigante 42/C
        (34010) Sgonico - Trieste - Italia
        Tel: +39 040 2140 156 (Udine)
        Tel: +39 040 2140 256 (Trieste)
        Cel.: +39 331 6481 935

        E-mail: mplasencia<at>inogs.it

        GPG Key: 22FCFFA8

        ASAIN (Antarctic Seismographic Argentinean Italian Network)
        **************************************

        On 29 May 2018 at 18:08, Alessandro Todrani <a.todrani<at>gmail.com> wrote:
        Hi,
        sorry for the question.

        I'm using your SAC programm for my university thesis, and i have a problem with ERROR 124. The message that appear is: Can't change to the directory. Check your permission.

        How can i resolve this error? It doesn't always happen, but when i have this error i can't go on.

        I'm waiting your answer.

        Thank you so much,
        Best regards,

        Alessandro.


        ----------------------
        SAC Help
        Topic home: http://ds.iris.edu/message-center/topic/sac-help/ | Unsubscribe: sac-help-unsubscribe<at>lists.ds.iris.edu

        Sent from the IRIS Message Center (http://ds.iris.edu/message-center/)
        Update subscription preferences at http://ds.iris.edu/account/profile/




        ----------------------
        SAC Help
        Topic home: http://ds.iris.edu/message-center/topic/sac-help/ | Unsubscribe: sac-help-unsubscribe<at>lists.ds.iris.edu

        Sent from the IRIS Message Center (http://ds.iris.edu/message-center/)
        Update subscription preferences at http://ds.iris.edu/account/profile/



        ----------------------
        SAC Help
        Topic home: http://ds.iris.edu/message-center/topic/sac-help/ | Unsubscribe: sac-help-unsubscribe<at>lists.ds.iris.edu

        Sent from the IRIS Message Center (http://ds.iris.edu/message-center/)
        Update subscription preferences at http://ds.iris.edu/account/profile/



        George Helffrich
        george<at>elsi.jp


00:04:46 v.b4412d20