Home » Infrastructure » Unix » RW Converter issue
RW Converter issue [message #628714] Thu, 27 November 2014 05:51 Go to next message
Heisenberg
Messages: 6
Registered: September 2014
Location: India
Junior Member
echo "Enter a filename:"
read fname
echo $fname
echo "Converting "$fname" to rex"
rwconverter userid=.../... batch=yes overwrite=yes stype=rdffile source=$fname dtype=rexfile

I placed the file in the correct custom path and executed the sh file.
The error I received was "cannot execute"

Any suggestions??

[Updated on: Thu, 27 November 2014 05:52]

Report message to a moderator

Re: RW Converter issue [message #628727 is a reply to message #628714] Thu, 27 November 2014 07:17 Go to previous messageGo to next message
Michel Cadot
Messages: 65256
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

This question bears no real connection with Oracle database.
Please find a more appropriate forum.
The topic is locked. /forum/fa/448/0/
If I'm wrong, please, PM me (or report this message to a moderator, explain why you think it should be unlocked and it might be done).
Re: RW Converter issue [message #628728 is a reply to message #628727] Thu, 27 November 2014 07:29 Go to previous messageGo to next message
Littlefoot
Messages: 21268
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
I think you're wrong, Michel. RWCONVERTER is used (here) to convert Oracle Reports' RDF files into REX.

Unfortunately, I don't know what "cannot execute" means. Heisenberg, could you copy/paste command line session so that we could see what's going on? I don't use Unix, but someone (who does) might know how to assist.
Re: RW Converter issue [message #628729 is a reply to message #628728] Thu, 27 November 2014 07:36 Go to previous messageGo to next message
Michel Cadot
Messages: 65256
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

Ah! OK, "cannot execute" means the script or program has not its execution bit set for the user.
Change the set permission bit using "chmod":
chmod u+x -- to change the permission for owner only
chmod g+x -- to change the permission for accounts with same group than the file (script or program)
chmod o+x -- to change the permission other accounts
chmod a+x or chmod +x -- to change for all
Re: RW Converter issue [message #628748 is a reply to message #628729] Thu, 27 November 2014 22:45 Go to previous messageGo to next message
Heisenberg
Messages: 6
Registered: September 2014
Location: India
Junior Member
I have already given full 777 permission to the file and the RWConverter file also has the full permission. The following is the commandline session:

$ sh rdftorex.sh
Enter a filename:
file_name.rdf
': not a valid identifier: `fname

Converting to rex
rdftorex.sh: line 5: /path/rwconverter: cannot execute
$
Re: RW Converter issue [message #628750 is a reply to message #628748] Fri, 28 November 2014 00:33 Go to previous message
Michel Cadot
Messages: 65256
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

ls -l /path/rwconverter

Previous Topic: How to use unix cell scripting
Next Topic: setting passwords for configuration assistant accounts
Goto Forum:
  


Current Time: Mon Dec 18 01:23:57 CST 2017

Total time taken to generate the page: 0.01350 seconds