If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > System calls from store procedures

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-02-02, 19:45
fermex fermex is offline
Registered User
 
Join Date: Oct 2002
Location: Monterrey, N.L. Mexico
Posts: 3
Red face System calls from store procedures

Hi , Somebody could helpme ?

I have a simple sentence like this

system "usr/bin/ls" <--- this instruction is in storeprocedure

when this instruction is executed by superuser informix, it works fine
but if any other user execute the same sentence the code error
return -668 System command cannot be executed.

Thx fyt
Reply With Quote
  #2 (permalink)  
Old 10-02-02, 22:15
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
Try system "/usr/bin/ls". Also, what are the permission setting for ls ? Which username(s) are explictly connecting to informix that are having this problem - and how are they defined on the unix box ? You also may have to manually set some environment variable in your sp. But try the absolute path and let me know.
Reply With Quote
  #3 (permalink)  
Old 10-03-02, 14:48
fermex fermex is offline
Registered User
 
Join Date: Oct 2002
Location: Monterrey, N.L. Mexico
Posts: 3
Quote:
Originally posted by rnealejr
Try system "/usr/bin/ls". Also, what are the permission setting for ls ? Which username(s) are explictly connecting to informix that are having this problem - and how are they defined on the unix box ? You also may have to manually set some environment variable in your sp. But try the absolute path and let me know.
Hi;

The user have total permissions, in fact that users make telnets and work with onstat , dbschema etc. every day and don't have any problem, but if they want to use that sp the error -668 followed by the -1 appear, my point is: What are the necessary conditions in the OS
to aceppt operating-systems calls? .

Why only informix can do that and my personal user donīt.

My user can shuttdown the DB and kill users , so I donīt understand.

Thanks for your time.

Last edited by fermex; 10-03-02 at 14:51.
Reply With Quote
  #4 (permalink)  
Old 10-04-02, 04:34
Roelwe Roelwe is offline
Registered User
 
Join Date: Aug 2002
Location: Belgium
Posts: 534
As rnealejr statet before, you might have to set an evironment. What are the permission for the 'ls' command?
__________________
rws
Reply With Quote
  #5 (permalink)  
Old 10-04-02, 09:12
fermex fermex is offline
Registered User
 
Join Date: Oct 2002
Location: Monterrey, N.L. Mexico
Posts: 3
Quote:
Originally posted by Roelwe
As rnealejr statet before, you might have to set an evironment. What are the permission for the 'ls' command?
the permissions are:

-r-xr-xr-x
Reply With Quote
  #6 (permalink)  
Old 10-04-02, 09:29
Roelwe Roelwe is offline
Registered User
 
Join Date: Aug 2002
Location: Belgium
Posts: 534
What happens if you create a shell file with permissions 777:

test.ksh
. /usr/<YOURUSER>/.profile
/usr/bin/ls

Instead of executing the /usr/bin/ls, try the test.ksh and see what happens.
__________________
rws
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On