diff options
author | ramon <ramongomez@us.es> | 2011-03-25 13:50:29 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2011-03-25 13:50:29 +0000 |
commit | 16ac86e1917e2878479e2952415c9ccb56313f22 (patch) | |
tree | 377e28c6f0623931210bf1d6ce83b8f2387c1599 /client/engine/System.lib | |
parent | ebbbfc01d5da45a96034eafcb96f81c4eb49543c (diff) |
Versión 1.0: Scripts para interfaz web soporte inicial de crear imágenes en modo no administrador.
Modificado #291.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@1631 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/engine/System.lib')
-rwxr-xr-x | client/engine/System.lib | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/client/engine/System.lib b/client/engine/System.lib index 1acb9364..9973b596 100755 --- a/client/engine/System.lib +++ b/client/engine/System.lib @@ -95,10 +95,8 @@ return $CODE function ogGetCaller () { # Obtener el nombre del programa o del script que ha llamado al proceso actual. -basename $(ps | grep $PPID | \ - awk -v P=$PPID '{if ($1==P) { - if ($5~/bash/ && $6!="") print $6 - else print $5; } }') +basename $(ps hlp $PPID | awk '{if ($13~/bash/ && $14!="") print $14; + else print $13;}') } |