Unsupported Screen Size: The viewport size is too small for the theme to render properly.

Sja In Bash File

  • This topic is empty.
Viewing 5 reply threads
  • Author
    Posts
    • #9553
      yecoyote
      Member

      i put sja in

      /home/my_user/sja

      and try to run

      #/home/my_user/sja /home/my_user/sja/sync_test.xml

      this is ok, it's work for me

      but when i put this command in bash file name 'sync'


      #!/bin/bash

      `/home/my_user/sja /home/my_user/sja/sync_test.xml`


      and run

      #/home/my_user/sja/sync

      error show

      /home/my_user/sja/sync: line 3: SQLyog: command not found

      what happen?

      please help me thank.

    • #20952
      peterlaursen
      Participant
      Quote:
      #/home/my_user/sja /home/my_user/sja/sync_test.xml

      I am surprised that this works! 'sja' is both a folder and a file (the executable) – if I understand you right. So the path to the executable must be #/home/my_user/sja/sja I think! (sja * 2: first sja-folder, next sja-file)

      So what happens with

      Quote:
      #/home/my_user/sja/sja /home/my_user/sja/sync_test.xml

      in the /bin/bash/sync file?

      And if there is only a sja file and not a sja folder it must be

      Quote:
      #/home/my_user/sja /home/my_user/sync_test.xml

      Also:

      why not simply put the 'sync' file in your own folder tree and start it with /path/sync or just ./sync

    • #20953
      yecoyote
      Member

      oh sorry it's must be

      #/home/my_user/sja/sja /home/my_user/sja/sync_test.xml

      i tar sja in my home path like this

      /home/my_user/sja/

      and i execute sja like this

      /home/my_user/sja/sja xml_file_name.xml

      this work if i type in command promp

      but if i put in bash file it not work!!!

      i put bash file name sync in sja path in the same place with sja execute file

      try many way to call sja execute file like this

      ./sja xml_file.xml

      sja xml_file.xml

      /home/my_user/sja/./sja xml_file_name.xml

      it alway says:

      SQLyog: command not found

    • #20954
      peterlaursen
      Participant

      I have only tlittle experience with this.

      But if I have a 'sync' file containing

      Code:
      sja myjob.xml

      then I can simply execute

      Code:
      ./sync

      or

      Code:
      /path/sync/

      from command line or as a cronjob on SuSE 10.

      I don't know about the way you are trying to do things. Why do you want to create a file in /bin/bash? Do you need to?

    • #20955
      yecoyote
      Member

      ok i will try this. thank for reply 🙂

    • #20956
      peterlaursen
      Participant

      If this is not what you need you will need to wait for someone else that knows more about linux than I do!

Viewing 5 reply threads
  • You must be logged in to reply to this topic.