Search Results

Search: Posts Made By: dedmakar
13,040
Posted By dedmakar
This code work good from PackageMaker install. ...
This code work good from PackageMaker install.
Add item to the loginwindow.plist for Mac OS X.
#!/bin/sh
#
##
MYSTRING=`awk '/MyApp.app/' /Users/$USER/Library/Preferences/loginwindow.plist`...
13,040
Posted By dedmakar
This is correct (compare two string): #!/bin/sh...
This is correct (compare two string):
#!/bin/sh
#
##
MYSTRING="www"
TEMP="qqq"
echo ${MYSTRING}
echo ${TEMP}
if [ "${MYSTRING}" = "${TEMP}" ];
then
echo String equal
else
echo String not...
13,040
Posted By dedmakar
#!/bin/sh # ## MYSTRING="www" TEMP="qqq" ...
#!/bin/sh
#
##
MYSTRING="www"
TEMP="qqq"
echo ${MYSTRING}
echo ${TEMP}
if [ "${MYSTRING}"="${TEMP}" ];
then
echo String equal
else
echo String not equal
fi

Result "String equal". What...
13,040
Posted By dedmakar
assign awk command result to a variable
#!/bin/sh
#
##
MYSTRING = `awk '/myApp.app/' /Users/$USER/Library/Preferences/loginwindow.plist`
if [$MYSTRING = ""]
then
echo String not found
defaults write...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 01:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy