[Synfig-devl] Konstantin Dmitriev : synfigstudio-cph-monitor: Detect synfigstudio started with arguments too.

2009-07-27 Thread Genete
Module: synfig
Branch: genete_master
Commit: c7efa619796407db833eb61ac1f41deb4cca78c8
URL:
http://synfig.git.sourceforge.net/git/gitweb.cgi?p=synfig;a=commit;h=c7efa619796407db833eb61ac1f41deb4cca78c8

Author: Konstantin Dmitriev ksee.zelga...@gmail.com
Date:   Sat Jul 25 13:39:28 2009 +0700

synfigstudio-cph-monitor: Detect synfigstudio started with arguments too.

---

 synfig-studio/trunk/synfigstudio-cph-monitor |9 +++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/synfig-studio/trunk/synfigstudio-cph-monitor 
b/synfig-studio/trunk/synfigstudio-cph-monitor
index 76f77f4..000b83a 100755
--- a/synfig-studio/trunk/synfigstudio-cph-monitor
+++ b/synfig-studio/trunk/synfigstudio-cph-monitor
@@ -98,13 +98,18 @@ dumpstats()
 mainloop()
 {
while true; do
-   if ( ps -f -u `whoami`|egrep synfigstudio$ /dev/null ) ; then
+   export PS=$(ps -f -u `whoami`)
+   if ( ( echo $PS |egrep synfigstudio$ /dev/null ) || ( echo 
$PS | egrep synfigstudio  /dev/null ) ) ; then
#synfigstudio process exist
if [[ $STARTED == 0 ]]; then
STARTED=1
RUNTIME=0
#get version
-   P=$(ps -f -u `whoami`|egrep synfigstudio$| tr 
-s ' '| cut -d ' ' -f 8)
+   if ( echo $PS |egrep synfigstudio$ 
/dev/null ) ; then
+   P=$( echo $PS |egrep synfigstudio$| 
tr -s ' '| cut -d ' ' -f 8)
+   else
+   P=$( echo $PS |egrep synfigstudio | 
tr -s ' '| cut -d ' ' -f 8)
+   fi
echo 
if [ ! -e $P ]; then
P=`which $P`


--
___
Synfig-devl mailing list
Synfig-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synfig-devl


[Synfig-devl] Konstantin Dmitriev : synfigstudio-cph-monitor: Detect synfigstudio started with arguments too.

2009-07-26 Thread Konstantin Dmitriev
Module: synfig
Branch: morevna
Commit: c7efa619796407db833eb61ac1f41deb4cca78c8
URL:
http://synfig.git.sourceforge.net/git/gitweb.cgi?p=synfig;a=commit;h=c7efa619796407db833eb61ac1f41deb4cca78c8

Author: Konstantin Dmitriev ksee.zelga...@gmail.com
Date:   Sat Jul 25 13:39:28 2009 +0700

synfigstudio-cph-monitor: Detect synfigstudio started with arguments too.

---

 synfig-studio/trunk/synfigstudio-cph-monitor |9 +++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/synfig-studio/trunk/synfigstudio-cph-monitor 
b/synfig-studio/trunk/synfigstudio-cph-monitor
index 76f77f4..000b83a 100755
--- a/synfig-studio/trunk/synfigstudio-cph-monitor
+++ b/synfig-studio/trunk/synfigstudio-cph-monitor
@@ -98,13 +98,18 @@ dumpstats()
 mainloop()
 {
while true; do
-   if ( ps -f -u `whoami`|egrep synfigstudio$ /dev/null ) ; then
+   export PS=$(ps -f -u `whoami`)
+   if ( ( echo $PS |egrep synfigstudio$ /dev/null ) || ( echo 
$PS | egrep synfigstudio  /dev/null ) ) ; then
#synfigstudio process exist
if [[ $STARTED == 0 ]]; then
STARTED=1
RUNTIME=0
#get version
-   P=$(ps -f -u `whoami`|egrep synfigstudio$| tr 
-s ' '| cut -d ' ' -f 8)
+   if ( echo $PS |egrep synfigstudio$ 
/dev/null ) ; then
+   P=$( echo $PS |egrep synfigstudio$| 
tr -s ' '| cut -d ' ' -f 8)
+   else
+   P=$( echo $PS |egrep synfigstudio | 
tr -s ' '| cut -d ' ' -f 8)
+   fi
echo 
if [ ! -e $P ]; then
P=`which $P`


--
___
Synfig-devl mailing list
Synfig-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synfig-devl


[Synfig-devl] Konstantin Dmitriev : synfigstudio-cph-monitor: Detect synfigstudio started with arguments too.

2009-07-25 Thread Konstantin Dmitriev
Module: synfig
Branch: zelgadis_master
Commit: c7efa619796407db833eb61ac1f41deb4cca78c8
URL:
http://synfig.git.sourceforge.net/git/gitweb.cgi?p=synfig;a=commit;h=c7efa619796407db833eb61ac1f41deb4cca78c8

Author: Konstantin Dmitriev ksee.zelga...@gmail.com
Date:   Sat Jul 25 13:39:28 2009 +0700

synfigstudio-cph-monitor: Detect synfigstudio started with arguments too.

---

 synfig-studio/trunk/synfigstudio-cph-monitor |9 +++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/synfig-studio/trunk/synfigstudio-cph-monitor 
b/synfig-studio/trunk/synfigstudio-cph-monitor
index 76f77f4..000b83a 100755
--- a/synfig-studio/trunk/synfigstudio-cph-monitor
+++ b/synfig-studio/trunk/synfigstudio-cph-monitor
@@ -98,13 +98,18 @@ dumpstats()
 mainloop()
 {
while true; do
-   if ( ps -f -u `whoami`|egrep synfigstudio$ /dev/null ) ; then
+   export PS=$(ps -f -u `whoami`)
+   if ( ( echo $PS |egrep synfigstudio$ /dev/null ) || ( echo 
$PS | egrep synfigstudio  /dev/null ) ) ; then
#synfigstudio process exist
if [[ $STARTED == 0 ]]; then
STARTED=1
RUNTIME=0
#get version
-   P=$(ps -f -u `whoami`|egrep synfigstudio$| tr 
-s ' '| cut -d ' ' -f 8)
+   if ( echo $PS |egrep synfigstudio$ 
/dev/null ) ; then
+   P=$( echo $PS |egrep synfigstudio$| 
tr -s ' '| cut -d ' ' -f 8)
+   else
+   P=$( echo $PS |egrep synfigstudio | 
tr -s ' '| cut -d ' ' -f 8)
+   fi
echo 
if [ ! -e $P ]; then
P=`which $P`


--
___
Synfig-devl mailing list
Synfig-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synfig-devl