09-15-2006
login hook ?
Maybe a login hook could do the trick?
sudo defaults write com.apple.loginwindow LoginHook /path/to/script
(For more information see
http://www.bombich.com/mactips/loginhooks.html and
http://docs.info.apple.com/article.html?artnum=301446 )
Using AppleScript you could try something like this:
osascript -e 'tell application "Terminal" to launch' -e 'tell application "System Events" to set visible of some item of ( get processes whose name = "Terminal" ) to false'
Btw, you can 'reset' Terminal.app by deleting the Terminal.plist file:
rm "$HOME/Library/Preferences/com.apple.Terminal.plist"
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I just changed from windows NT to XP and I am no longer able
to connect to my unix system. I used to use hyper terminal -- which acts as dumb terminal to my main frame unix system. I think one of the options used to be "direct to comX". This option isn't listed now. I use a serial port and the... (2 Replies)
Discussion started by: michelle
2 Replies
2. UNIX for Advanced & Expert Users
I am trying to automate a SSH login using Keys using the following command
ssh -i id_rsa usernamw@ipaddr.
I am successful in doing this and i am getting the Warning Screen and I logon successfully.
but when I am executing the command
tail -1cf put.dat | ssh -i id_rsa username@ipaddr > get.dat ... (1 Reply)
Discussion started by: Shivdatta
1 Replies
3. Linux
for all friends
i am using linux enterprise 4. i installed oracle 10g
in user name oracle.at the end of install i got a pop up window
saying that u should run the following scripts(root.sh,orainstRoot.sh) in terminal from root account(cui) without log out oracle account .
how i can run these... (5 Replies)
Discussion started by: sadiquep
5 Replies
4. Shell Programming and Scripting
suppose we have a file
ab
81
and another file
exec < $1
while read line
do
ssh root@172.16.1.$line
done
while running the command
sh file.sh ab
output display as shown
Pseudo-terminal will not be allocated because stdin is not a terminal.
root@172.16.1.81's password:
after... (3 Replies)
Discussion started by: cdfd123
3 Replies
5. OS X (Apple)
Hello,
i am trying to write a script for terminal for my mac that i may drag into the terminal and will excute the following command:
script -akq Desktop/TerminalLogin/Cisco1Bob.txt
telnet x.x.x.x
the problem is that when i drag the text file to the terminal window the script stops after... (6 Replies)
Discussion started by: drdread
6 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I installed ubuntu recently on my pc. And I installed gnuplot as well.
When I first started working with gnuplot it was working . I did a plot and when I wanted to fit my data something happened and not the default terminal of gnuplot is xwt!
I changed it to: set terminal x11, but it... (0 Replies)
Discussion started by: cosmologist
0 Replies
7. OS X (Apple)
Hi All
I have this script that checks to see if ntp is enabled on a machine
launchctl load -w /System/Library/LaunchDaemons/org.ntp.ntpd.plist
It retuns
org.ntp.ntpd: Already loaded
if it is loaded, is there a way to script it so that if it is loaded it does not say anything but... (2 Replies)
Discussion started by: ab52
2 Replies
8. Shell Programming and Scripting
Hi Guys,
I have a script that runs certain simulations in batch mode. I need to schedule some simulations to run over night.
For each simulation to complete it should be run in separate terminal.
My script is as follows
sh run_test.sh <arg1> <arg2> <arg3> ...
I need to launch this... (5 Replies)
Discussion started by: aelhosiny
5 Replies
9. Shell Programming and Scripting
I have been having an extremely annoying problem. For the record, I am relatively new at this. I've only been working with unix-based OS's for roughly two years, mostly Xubuntu and some Kali. I am pretty familiar with the BASH language, as that's the default shell for debian. Now, I've made this... (16 Replies)
Discussion started by: Huitzilopochtli
16 Replies
10. Shell Programming and Scripting
Hello All,
I have a text file containing output from a command that contains lots of escape/control characters that when viewed using vi or view, looks like jibberish. But when viewed using the cat command the output is formatted properly.
Is there any way to take the output from the cat... (7 Replies)
Discussion started by: mrm5102
7 Replies
LEARN ABOUT MOJAVE
smartcardservices-legacy
SmartCardServices-legacy(7) BSD Miscellaneous Information Manual SmartCardServices-legacy(7)
NAME
SmartCardServices-legacy -- overview of legacy SmartCard support
DESCRIPTION
SmartCardServices-legacy is a set of components which add native support for SmartCards to OS X based on Tokend modules. Since OS X 10.12,
there is SmartCard support which is described in SmartCardServices(7)
Supported SmartCards appear as separate keychains. A Tokend module for each SmartCard you wish to use must be installed in
/Library/Security/tokend
USB SMART CARD READER DRIVERS
OS X has built-in support for USB CCID class-compliant SmartCard readers. For other readers, install the reader driver in
/usr/local/libexec/SmartCardServices/drivers. Each driver is a bundle. The bundle contains an XML file Info.plist which contains the
device's USB vendor ID and product ID. For detailed description of the plist format and how to write a reader driver, see
http://pcsclite.alioth.debian.org/api/group__IFDHandler.html
SMART CARD APDU LOGGING
It is possible to turn on logging for SmartCards by setting the global preference:
sudo defaults write /Library/Preferences/com.apple.security.smartcard Logging -bool yes
After a SmartCard reader is connected (or after reboot) all operations including contents of sent and received APDU messages are then logged
into the system log. Logging uses the facility com.apple.security.smartcard.log so it is possible to set up filtering of these logs into
custom targets (see asl.conf(5))
To avoid security risks that could occur if logging is turned on indefinitely, the logging setting is one-shot - it must be turned on by the
command above to start logging again with a new reader. This includes unplugging and replugging the same reader.
DISABLING NEW SMART CARD SUPPORT
It is possible to turn of the new tokens by setting the global preference:
sudo defaults write /Library/Preferences/com.apple.security.smartcard DisabledTokens -array com.apple.CryptoTokenKit.pivtoken
DISABLING SHEET AUTHORIZATION IN PREFERENCES
When using tokend-based SmartCards, according to your configuration you may not be able to use SmartCards for authorization in System Prefer-
ences sheets. In such case, you can disable sheets using following command:
defaults write com.apple.Preferences UseSheets -bool FALSE
System Preferences will then use the original dialog-based authorization.
ENTITLEMENT
Sandboxed PCSC clients require 'com.apple.security.smartcard=YES' entitlement. Non-sandboxed PCSC clients do not require such entitlement (in
order to keep backward compatibility with macOS < 10.10).
SEE ALSO
SmartCardServices(7), sc_auth(8), defaults(1), asl.conf(5), ssh-keychain(8)
Mac OS X August 5, 2014 Mac OS X