Author |
Message
|
Augusto |
Posted: Thu Jan 29, 2009 1:16 pm Post subject: qload on solaris |
|
|
Apprentice
Joined: 08 Dec 2008 Posts: 29
|
i unable to execute qload When i run below command to copy messages from queue to file
qload -m SUQM -i QL_DSN_HOLD -f hold.out
ksh: qload: cannot execute
i copied qload to home/mqm directory and run from there. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Jan 29, 2009 2:04 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
So you've got an OS permissions issue. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Augusto |
Posted: Thu Jan 29, 2009 2:20 pm Post subject: |
|
|
Apprentice
Joined: 08 Dec 2008 Posts: 29
|
what should i do
below is file permissions
ls -lrt qload
-rwxrwxrwx 1 mqm mqm 272344 Jan 29 14:08 qload* |
|
Back to top |
|
 |
gbaddeley |
Posted: Thu Jan 29, 2009 6:05 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
Maybe its not a valid binary executable for that platform. How did you copy it there?
I assume you've got "." in your PATH, otherwise it might be getting the qload program from some other directory. _________________ Glenn |
|
Back to top |
|
 |
Augusto |
Posted: Fri Jan 30, 2009 7:50 am Post subject: |
|
|
Apprentice
Joined: 08 Dec 2008 Posts: 29
|
|
Back to top |
|
 |
bruce2359 |
Posted: Fri Jan 30, 2009 9:00 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Quote: |
copied qload to home/mqm directory... |
Where did you copy qload from? Same platform? same o/s? _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
Augusto |
Posted: Fri Jan 30, 2009 10:15 am Post subject: |
|
|
Apprentice
Joined: 08 Dec 2008 Posts: 29
|
|
Back to top |
|
 |
SAFraser |
Posted: Fri Jan 30, 2009 11:14 am Post subject: |
|
|
 Shaman
Joined: 22 Oct 2003 Posts: 742 Location: Austin, Texas, USA
|
You need the version compiled for Solaris.
If you do not already have the proper executable, download MO03 from the SupportPacs link above. When you unzip it (which you can do on your Windows machine), you will find executables for the various platforms.
As a general rule, no executable compiled for Windows will run on a Unix platform.
Last edited by SAFraser on Fri Jan 30, 2009 12:00 pm; edited 1 time in total |
|
Back to top |
|
 |
Vitor |
Posted: Fri Jan 30, 2009 11:27 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Augusto wrote: |
i copied from windows |
 _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Augusto |
Posted: Fri Jan 30, 2009 11:57 am Post subject: |
|
|
Apprentice
Joined: 08 Dec 2008 Posts: 29
|
yes i did samething downloaded MO03 from ibm site and copied qload executable to server from solaris folder |
|
Back to top |
|
 |
SAFraser |
Posted: Fri Jan 30, 2009 12:03 pm Post subject: |
|
|
 Shaman
Joined: 22 Oct 2003 Posts: 742 Location: Austin, Texas, USA
|
|
Back to top |
|
 |
mqjeff |
Posted: Fri Jan 30, 2009 12:05 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
And when you did the FTP transfer, did you ensure that you used BIN mode, to ensure that no character translation was performed?
 |
|
Back to top |
|
 |
Augusto |
Posted: Fri Jan 30, 2009 1:05 pm Post subject: |
|
|
Apprentice
Joined: 08 Dec 2008 Posts: 29
|
below commands what i was used and let me know if anything wrong?
ftp> binary
200 Type set to I.
ftp> put qload
200 PORT command successful.
150 Opening BINARY mode data connection for qload.
226 Transfer complete.
ftp: 272344 bytes sent in 0.20Seconds 1341.60Kbytes/sec.
ftp>
qload -m SUQM -i QL_DSN_HOLD -f hold.out
ksh: qload: cannot execute |
|
Back to top |
|
 |
SAFraser |
Posted: Fri Jan 30, 2009 2:00 pm Post subject: |
|
|
 Shaman
Joined: 22 Oct 2003 Posts: 742 Location: Austin, Texas, USA
|
You sure that "." is in your path? Try ./qload from the /home/mqm directory? |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Jan 30, 2009 5:36 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Augusto wrote: |
below commands what i was used and let me know if anything wrong?
ftp> binary
200 Type set to I.
ftp> put qload
200 PORT command successful.
150 Opening BINARY mode data connection for qload.
226 Transfer complete.
ftp: 272344 bytes sent in 0.20Seconds 1341.60Kbytes/sec.
ftp>
qload -m SUQM -i QL_DSN_HOLD -f hold.out
ksh: qload: cannot execute |
Post ftp did you go to the relevant directory and make the file executable?
Code: |
chmod a+rx qload
ls -l qload
rwxr-xr-x ....... |
Try executing after that... have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|