Search Results

Search: Posts Made By: doctorfoo1
Forum: OS X (Apple) 02-28-2012
16,178
Posted By doctorfoo1
okay ,.. your probably getting a dscl error....
okay ,..
your probably getting a dscl error. have you tried the dscl read directly in the terminal ?

dscl /LDAPv3/ldap1.mydomain.com/ -read Users/$aName RecordName UniqueID

if that fails, you...
Forum: OS X (Apple) 02-27-2012
16,178
Posted By doctorfoo1
script remove user info
copy and paste the script in AppleScript

or


use a text editor and create a Shell Script


#!/bin/bash
clear
bold=`tput smso`
offbold=`tput rmso`
echo "Section 1";
aName=joeuser
...
Forum: OS X (Apple) 01-17-2012
16,178
Posted By doctorfoo1
greetings here is an applescript i wrote a...
greetings

here is an applescript i wrote a while ago. it uses a filemaker database to grab the users name and information. I had one written in bash, but I can't find it,.


tell application...
Forum: OS X (Apple) 11-21-2011
2,206
Posted By doctorfoo1
Ill give you my favorite , use IPFW , squid...
Ill give you my favorite ,

use IPFW , squid and squidguard combo with Shalla Secure Services KG (http://www.shallalist.de/)

basically divert any request against "yourblacklist" allow deny.
you...
Forum: OS X (Apple) 09-29-2011
15,720
Posted By doctorfoo1
Thanks, Im guessing there is not way to...
Thanks,

Im guessing there is not way to change the whole screen in one shot. the Code above works line by line, changing the background color of the lines Im working on.

No problem, using this...
Forum: OS X (Apple) 09-29-2011
15,720
Posted By doctorfoo1
Manipulate terminal session background color
Greetings,

I know I can manipulate from AppleScript to terminal.app or just run commands from apple script.

But what about from a BASH Script.

when A user logs in and runs a maintenance...
Forum: IP Networking 09-27-2011
2,285
Posted By doctorfoo1
pool { option routers 10.13.7.1; ...
pool {

option routers 10.13.7.1;
option domain-name-servers 10.13.7.2;
range 10.13.7.310.13.7.254;
}
3,197
Posted By doctorfoo1
SCp is scriptable but you need to setup Host keys...
SCp is scriptable but you need to setup Host keys first.

## Setup Aiuthorized keys
mkdir .ssh && touch known_hosts

scp id_rsa.pub root@myhost:/var/root/.ssh/authorized_keys


then you can...
22,300
Posted By doctorfoo1
try this ldapsearch -LLL -x -h 10.1.1.15 -b...
try this
ldapsearch -LLL -x -h 10.1.1.15 -b dc=myhost,dc=sumthin,dc=com "uid=stewiegriffin"

in this case no password is required to read from LDAP.
Forum: OS X (Apple) 09-22-2011
5,258
Posted By doctorfoo1
from the DHCP server side i use my DHCP logs...
from the DHCP server side
i use my DHCP logs starting with a simple grep;

awk '{print $11,$10,$12}' /var/log/system.log | grep iP

the pipe to grep is for sorting by iP or iPhone/iPod you...
3,197
Posted By doctorfoo1
download and install an FTP/SFTP client. For SFTP...
download and install an FTP/SFTP client. For SFTP you will need OpenSSH installed.
not sure about windows 7, hopefully they have integrated a secure file transfer protocol, what ever that may be.
-x
2,144
Posted By doctorfoo1
hello, check your man pages for Solaris you may...
hello, check your man pages for Solaris you may already have the ability to compress or expand files on your system.

man gzip, gunzip, zcat

else The gzip home page (http://www.gzip.org/)
heres...
913
Posted By doctorfoo1
try this awk '1 == NR % 2' foofile1 ...
try this

awk '1 == NR % 2' foofile1

this should print out every other line skipping the 1,,,, 2,,,, 3,,,,
1,503
Posted By doctorfoo1
yes play with the other one. but here is a...
yes play with the other one. but here is a different approach

#!/bin/sh
echo What is your name?
read MY_NAME
echo "Hello $MY_NAME - hope you're well."
;
Forum: OS X (Apple) 09-22-2011
32,263
Posted By doctorfoo1
greetings drwxr-xr-x@ 14 root wheel ...
greetings
drwxr-xr-x@ 14 root wheel 476 May 26 13:07 usr

chmod -Rf 755 /usr
chown -Rf root:wheel /usr

that should set you straight. Then relaunch your apps
1,503
Posted By doctorfoo1
here is a simple example; #!/bin/bash Y=jeff ...
here is a simple example;
#!/bin/bash
Y=jeff
Z=joe
echo "enter your Name "
read X
echo " your name is $X"
if [ $X = jeff ]
then
echo " hello jeff "
exit -1
else
if [ $X = $Z ]
then...
Forum: OS X (Apple) 09-22-2011
1,965
Posted By doctorfoo1
here is a snippit I modified your code using...
here is a snippit I modified your code using Safari instead of Ical, it was easier to pull a webpage as a demo than an iCal doc ;

try
choose from list {"Prodcution", "201sa", "SS Meeting Room",...
Forum: OS X (Apple) 09-22-2011
2,303
Posted By doctorfoo1
Greetings Mac OSx you can find most standard...
Greetings

Mac OSx you can find most standard binaries in /usr/bin or /usr/sbin
some programs are launched from /usr/include/program_name.

you should not try to install tools in the root dir "...
Forum: OS X (Apple) 09-06-2011
2,912
Posted By doctorfoo1
add this line to the top somewhere.
add this line to the top somewhere.
Forum: OS X (Apple) 09-06-2011
8,542
Posted By doctorfoo1
go to /etc paths and check your paths file and...
go to /etc paths and check your paths file and make sure your /usr/bin/ is available, and not /opt/local/macports/bin

macports also likes to place a path in your .profile :)
Forum: OS X (Apple) 09-06-2011
4,192
Posted By doctorfoo1
awk '{print $1, $2}' myfile.txt should be...
awk '{print $1, $2}' myfile.txt

should be able to read the first two fields without boogers. increment the $3,$4 to step through the fields.
5,015
Posted By doctorfoo1
yes your global variable is what ever is...
yes

your global variable is what ever is current in /tmp/myDumpfile.txt
just read it. it may change but if it's in a fixed location the information can either be read by others or given to...
1,997
Posted By doctorfoo1
sounds like a character encoding mismatch. are...
sounds like a character encoding mismatch. are you seeing this error from within Apples terminal ? try with a non apple terminal window. then check the encoding in the preferences . There is an...
Showing results 1 to 23 of 23

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