Whenever I start Terminal or open up a new window, pbpaste always runs. Here's some output:
This means that anything on the clipboard would be executed! Quite the security hole. What if "sudo rm -rf /" happened to be on the clipboard... then what?Code:Last login: Wed Aug 24 15:33:25 on ttyp1 /Applications/ffmpegX.app//Contents/Resources/pbpaste | sh Welcome to the Terminal. Try not to screw up. ColinsPowerBook:~ colin$ /Applications/ffmpegX.app//Contents/Resources/pbpaste | sh sh: line 1: You: command not found ColinsPowerBook:~ colin$
From a programming standpoint, a simple AppleScript could do the same thing with much less confusion. I'm no AppleScript programmer, but here's some psuedocode for it:
Hope this helps. In the meantime, though, how do I fix my Terminal?Code:tell application "Terminal" activate do script with command "whatevercommand" & " arguments" -- splitting the command is required to work around a bug, it might be fixed in OS X 10.4.3 end tell
Results 1 to 1 of 1
Similar Threads
-
Batch convert AVI to MKV on Mac from terminal?
By hogfan in forum MacReplies: 5Last Post: 19th Nov 2014, 19:19 -
using the dd command in terminal to backup DVDs
By redishdog in forum MacReplies: 10Last Post: 24th Nov 2010, 19:46 -
splayer hijacked video files
By ricardouk in forum Software PlayingReplies: 9Last Post: 7th Jun 2010, 12:36 -
Question about how website gets hijacked
By jimdagys in forum ComputerReplies: 3Last Post: 1st Jan 2010, 09:51 -
How to use Hyper Terminal in TCP/IP(winsock) mode to communicate ?
By SingSing in forum ComputerReplies: 14Last Post: 31st Aug 2008, 07:37