dbTalk Databases Forums  

How do I execute a unix shell command from inside UniVerse

comp.databases.pick comp.databases.pick


Discuss How do I execute a unix shell command from inside UniVerse in the comp.databases.pick forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ctait (Offline)
Junior Member
 
Posts: 3
Join Date: Apr 2006

Default How do I execute a unix shell command from inside UniVerse - 04-26-2006 , 03:28 PM






I've been using pick since R83 but have been away from it for the past 7 years. I've got Universe all working well under redhat but am unable to find the command to execute unix shell command from inside of universe.

In AP I could do this with the ! in front and D3 has something similar.

Reply With Quote
  #2  
Old   
Frans Utt
 
Posts: n/a

Default Re: How do I execute a unix shell command from inside UniVerse - 04-26-2006 , 04:48 PM






Hi,

I normally do a

EXECUTE "SH -c 'COMMAND'"

Hope this helps,

Frans


On Wed, 26 Apr 2006 16:28:09 -0400, Ctait
<Ctait.26w3sz (AT) no-mx (DOT) forums.yourdomain.com.au> wrote:

Quote:
I've been using pick since R83 but have been away from it for the past 7
years. I've got Universe all working well under redhat but am unable to
find the command to execute unix shell command from inside of
universe.

In AP I could do this with the ! in front and D3 has something similar.

Reply With Quote
  #3  
Old   
Ctait (Offline)
Junior Member
 
Posts: 3
Join Date: Apr 2006

Default 04-26-2006 , 06:49 PM



Cheers man.

I tried that and it returns "/bin/ps: cannot execute binary file"

any ideas from here?

Reply With Quote
  #4  
Old   
Ctait (Offline)
Junior Member
 
Posts: 3
Join Date: Apr 2006

Default 04-26-2006 , 06:53 PM



SWEET!!

Ignore that last reply it works fine inside basic, thats all I need to do.

I spend over a day reading to try and find the answer - thanks heaps, you saved me getting a headache.

Reply With Quote
  #5  
Old   
(latimerp)
 
Posts: n/a

Default Re: How do I execute a unix shell command from inside UniVerse - 04-26-2006 , 07:50 PM



Ctait wrote:
Quote:
Cheers man.

I tried that and it returns "/bin/ps: cannot execute binary file"

any ideas from here?


Permissions of the UV user or the path values from the env unix command

Patrick, <;=)


Reply With Quote
  #6  
Old   
(latimerp)
 
Posts: n/a

Default Re: How do I execute a unix shell command from inside UniVerse - 04-26-2006 , 08:24 PM



(latimerp) wrote:

Quote:
Ctait wrote:

Cheers man.

I tried that and it returns "/bin/ps: cannot execute binary file"

any ideas from here?


Permissions of the UV user or the path values from the env unix command

Patrick, <;=)
You could try to logon as root and execute the command from linux. They
move the files around now and again. You could have been hacked. Try the
root thing and if it works type *who*. If it works then is sounds like
permissions. Do a *ls -l /bin/ps* and check the group and owner permissions.

Patrick, <;=)


Reply With Quote
  #7  
Old   
Frans Utt
 
Posts: n/a

Default Re: How do I execute a unix shell command from inside UniVerse - 04-27-2006 , 01:04 AM




I sometimes also change permissions

EXECUTE "SH -c 'usr/local/bin/sudo /usr/bin/su - command' "


not sure if that would help but I think you have a permission error.


Frans




On Wed, 26 Apr 2006 19:49:27 -0400, Ctait
<Ctait.26wc50 (AT) no-mx (DOT) forums.yourdomain.com.au> wrote:

Quote:
Cheers man.

I tried that and it returns "/bin/ps: cannot execute binary file"

any ideas from here?

Reply With Quote
  #8  
Old   
Martin Kent
 
Posts: n/a

Default Re: How do I execute a unix shell command from inside UniVerse - 04-27-2006 , 03:24 AM



Can you execute "ps" from the bash prompt as "root"? If so, type
"whereis ps" and this will show you the pathname for the "ps", which
may differ from /bin/ps. If you can't execute as root, you may have
been hacked with a rootkit, which spoofs commands like "ps" and
"ifconfig"., See the following article

http://www.linuxdevcenter.com/pub/a/...4/rootkit.html

for details. Incidentally, avast! and avg both do free anit-virus
programs for Linux.


Reply With Quote
  #9  
Old   
rcamarda
 
Posts: n/a

Default Re: How do I execute a unix shell command from inside UniVerse - 04-27-2006 , 05:22 AM



when you execute a unix command from within universe, the environment
is not set (at least in my case).
So, I use full paths of what I want to execute:
/usr/bin/ftp
or
/usr/bin/rm /tmp/printouts/[A-Z]*
HTH
Rob


Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.