Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Check software update status at Terminal launch' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Check software update status at Terminal launch
Authored by: bustthis on Feb 17, '04 03:37:08PM

warning: this will break sftp!!!

i was having problems using sftp in transmit, fugu and terminal after adding softwareupdate --list to my .tcshrc file. once i removed it, sftp works again.


---
charles



[ Reply to This | # ]
Check software update status at Terminal launch
Authored by: LC on Feb 17, '04 04:41:37PM

Did you make sure (in your ~/.cshrc) to exit early for non-interactive shells?
Many apps trigger a subshell (I remember Unixes where this used to happen on a
"which" command;), which is non-interactive, just to do something basic so in that case,
you want to exit after the env setup i.e. just after path/PATH initialization (and any
other env variable initialization)
So ... what if we try --
if (! ?{prompt}) exit
prior to this Software Update stuff; Larry.



[ Reply to This | # ]
Check software update status at Terminal launch
Authored by: LC on Feb 17, '04 04:45:21PM

Sorry, I just realized that the original thread was assuming sh/bash (the ~/.profile) ...
I think it's safer to do the Software Update check as a backgrounded sub-shell, but
anyways I wouldn't put it in a ~/.tcshrc if tcsh is always launched by default (unless you do
the interactive i.e. prompt check like I mentioned) Larry.



[ Reply to This | # ]