forums › forums › SQLyog › Sync tools, Migration, Scheduled Backup and Notifications › Sja In Bash File
- This topic is empty.
-
AuthorPosts
-
-
March 22, 2006 at 9:43 am #9553yecoyoteMember
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.
-
March 22, 2006 at 10:34 am #20952peterlaursenParticipantQuote:#/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.xmlin 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.xmlAlso:
why not simply put the 'sync' file in your own folder tree and start it with /path/sync or just ./sync
-
March 22, 2006 at 10:58 am #20953yecoyoteMember
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
-
March 22, 2006 at 11:21 am #20954peterlaursenParticipant
I have only tlittle experience with this.
But if I have a 'sync' file containing
Code:sja myjob.xmlthen I can simply execute
Code:./syncor
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?
-
March 22, 2006 at 3:40 pm #20955yecoyoteMember
ok i will try this. thank for reply 🙂
-
March 22, 2006 at 3:45 pm #20956peterlaursenParticipant
If this is not what you need you will need to wait for someone else that knows more about linux than I do!
-
-
AuthorPosts
- You must be logged in to reply to this topic.