SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Politics : Formerly About Advanced Micro Devices -- Ignore unavailable to you. Want to Upgrade?


To: Brumar89 who wrote (1022069)6/21/2017 12:08:52 PM
From: Thomas A Watson2 Recommendations

Recommended By
FJB
TideGlider

  Read Replies (3) | Respond to of 1572630
 
In the news...
Tech Titans Praise President Trump at White House Meeting Jun 20, 2017
Clearly the Russians are in charge...


some coding from last week.
watson@xen2[2344]cat /usr/local/bin/dgoogle
#!/bin/tcsh
#file = /usr/local/bin/dgoogle

# setup up softlinks first time only.
if ( !( -e /usr/local/bin/gdarg_w) ) then
ln -s /usr/local/bin/dgoogle /usr/local/bin/gdarg_w
endif

if ( !( -e /usr/local/bin/gdarg_t) ) then
ln -s /usr/local/bin/dgoogle /usr/local/bin/gdarg_t
endif
if ( !( -e /usr/local/bin/gdarg_d) ) then
ln -s /usr/local/bin/dgoogle /usr/local/bin/gdarg_d
endif

if ( !( -e /usr/local/bin/gdarg_pro01) ) then
ln -s /usr/local/bin/dgoogle /usr/local/bin/gdarg_pro01
endif

if ( !( -e /usr/local/bin/gdarg_pro02) ) then
ln -s /usr/local/bin/dgoogle /usr/local/bin/gdarg_pro02
endif

if ( !( -e /usr/local/bin/gdarg_pro03) ) then
ln -s /usr/local/bin/dgoogle /usr/local/bin/gdarg_pro03
endif

if ( !( -e /usr/local/bin/gdarg_pro04) ) then
ln -s /usr/local/bin/dgoogle /usr/local/bin/gdarg_pro04
endif

if ( $1 == "-h" ) then
echo "/usr/local/bin/gdarg_d [1] "
echo "/usr/local/bin/gdarg_t [1] "
echo "/usr/local/bin/gdarg_w [1] "
echo "/usr/local/bin/gdarg_pro01 [1]"
echo "/usr/local/bin/gdarg_pro02 [1]"
echo "/usr/local/bin/gdarg_pro03 [1]"
echo "/usr/local/bin/gdarg_pro04 [1]"
exit
endif

# arg 0 is the name of command.
set command=`echo $0 | awk -F/ '{print $NF}' `

if ( $command == dgoogle ) then
echo current defined google chrome profiles
echo "/usr/local/bin/gdarg_d [1] "
echo "/usr/local/bin/gdarg_t [1] "
echo "/usr/local/bin/gdarg_w [1] "
echo "/usr/local/bin/gdarg_pro01 [1]"
echo "/usr/local/bin/gdarg_pro02 [1]"
echo "/usr/local/bin/gdarg_pro03 [1]"
echo "/usr/local/bin/gdarg_pro04 [1]"

endif



if ( $command == gdarg_w ) then

google-chrome-stable --user-data-dir='/home/$user/.config/google-chrome/gdarg_w' &

endif

if ( $command == gdarg_t ) then

google-chrome-stable --user-data-dir='/home/$user/.config/google-chrome/gdarg_t'&

endif
if ( $command == gdarg_d ) then

google-chrome-stable --user-data-dir='/home/$user/.config/google-chrome/gdarg_d'&

endif

if ( $command == gdarg_pro01 ) then

google-chrome-stable --user-data-dir='/home/$user/.config/google-chrome/gdarg_pro01'&

endif

if ( $command == gdarg_pro02 ) then

google-chrome-stable --user-data-dir='/home/$user/.config/google-chrome/gdarg_pro02'&

endif

if ( $command == gdarg_pro03 ) then

google-chrome-stable --user-data-dir='/home/$user/.config/google-chrome/gdarg_pro03'&

endif

if ( $command == gdarg_pro04 ) then

google-chrome-stable --user-data-dir='/home/$user/.config/google-chrome/gdarg_pro04'&

endif