Execute runs commands in a separate shell.  The current working directory of
the parent shell is not changed.  Therefore, the second 'pwd' command shows
the current working directly correctly.

Try this:

execute 'SH -c "pwd" '
execute 'SH -c "cd / ; pwd" '

Larry Hiscock
Western Computer Services


-----Original Message-----
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Brutzman, Bill
Sent: Thursday, October 01, 2009 1:17 PM
To: U2 Users List
Subject: [U2] [UV] Getting to the OS


The first UniBasic command works; the second command does not...

  execute 'SH -c "pwd" '
  execute 'SH -c "cd /" '
  execute 'SH -c "pwd" '

UniVerse on HP-Ux comes back with...

  /u2/METAL
  /u2/METAL

Help would be appreciated.

--Bill Brutzman
_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to