Software :: Starting Terminal From Command Line And Passing An Argument

Aug 23, 2008

I have a MacBook Pro running 10.5, and I have a Terminal instance set up that invokes the following command:/usr/bin/emacs -nwI'd like to be able to pass a file name to this instance when I start it up, so that it will open a window with an emacs session that is editing that particular file. In other words, the file name is not hard-coded, but rather, it's passed in when I start the Terminal program. Furthermore, I'd like to be able to start this Terminal session with a specified file name by means of a command-line dialog from within another Terminal session. Can anyone suggest a way to do this? By the way, I'm not looking for a solution that only works with emacs, which I only mentioned here as an example. I'd like to know a general way to pass a specified argument at invocation time to an arbitrary program that's associated with a Terminal session, and I'd like to be able to perform this invocation via the command line from within another Terminal session.

View 2 Replies


ADVERTISEMENT

OS X :: Command Line Argument That Use To Open Specific Pdf Pages In Terminal?

May 1, 2009

Is there a command line argument that I can use to turn to a specific page in a Pdf file either through Preview or Acrobat Reader? In Windows, this works easily (for example: robat.exe /A "page=123", "foo.pdf"), but I've looked everywhere for a Mac equivalent with no luck. I would like to avoid using programs like Pdftk that involve copying pages into newly created Pdf files.

View 1 Replies View Related

OS X :: Change Apple Mail's HELO Command Argument?

Nov 12, 2009

I cannot send any emails at present, because my Mac is sending a syntactically invalid HELO command to the SMTP server I'm using. I see the following: 2009-11-13 00:25:47 rejected HELO from [173.78.137.13]: syntactically invalid argument(s): joe-mason-imac: scappian:joe-mason-imac.home My question - where can I change the HELO argument that is being used. I suspect it is invalid at present because there is a 'space' in the argument.

View 3 Replies View Related

Software :: Launch Terminal By Passing Language Selection?

Nov 15, 2010

While doing a fresh install of Snow leopard, we go through the language selection screen and then the utilities screen come up - From the utilities screen, we can launch "terminal".

Is there a way to bypass the above steps and directly launch terminal or any other app, when we begin the installation process? Is there any way to pass parameters to Snow Leopard bootloader during install process?

View 1 Replies View Related

OS X :: Top Command In Terminal?

Sep 30, 2009

Can anyone tell me what this "*" means beside mathematica and mathkernel? I'm using snow leopard.

View 5 Replies View Related

OS X :: Terminal Command For OS X?

Mar 5, 2010

Simple request and for some reason my google-fu is failing me. How do I change the volume (drive not audio) in the Terminal app in OS X. I am using SL.

View 24 Replies View Related

OS X :: Strange Message While Starting Terminal

Jun 19, 2009

Every time I start Terminal, it says the following before the prompt and after the "last login": "-bash: export: `PATH#': not a valid identifier" It ALWAYS says this. I assume this is symptomatic of a slight behind-the-scenes code issue that I could easily fix if I could figure out what it is.

View 2 Replies View Related

OS X :: Command To Clear Terminal?

Oct 5, 2010

Is there a command to clear the terminal screen that works like 'cls' on Windows? I know about 'clear', but clear just moves the prompt on the top of the screen, leaving the previous output visible if I scroll up.

A friend suggested 'clear_console' (I think he's on debian) but I can't find it on OS X or MacPorts.

View 7 Replies View Related

OS X :: Command Not Found In MAC OS Terminal?

Oct 29, 2010

I want to build a redboot kernel in a wireless router, the command required from my newly acquired knowledge is insmod and modprobe.

However from the mac 10.5.8 terminal it says that the command is not found. I have installed gcc , sdk compiler support and enabled the super user as well.

View 3 Replies View Related

OS X :: Run Terminal Command At Startup?

Nov 29, 2007

Seems like a simple thing to do, yet I've searched and not found an answer.

Automator doesn't seem to have a terminal function...?

Does anyone know?

View 8 Replies View Related

OS X :: How Can I Easily Run A Terminal Command

Nov 19, 2008

I want to run some terminal commands fairly often... yet I don't want to have to type them. I just switched from windows, so I need some help as to how to do this.

In windows I would've just used a batch file to run command prompt commands. I need something that will let me just run it and it will automatically run the commands.

View 3 Replies View Related

OS X :: How To Reverse Terminal Command

Mar 4, 2009

I ran this command in terminal to change my screen shot to jpg format. Now my screenshot doesn't work. Any idea how to fix or reverse this?

View 2 Replies View Related

OS X :: Terminal Command For Current App?

Apr 9, 2009

Is there a command for terminal to get the current application?

View 4 Replies View Related

OS X :: How To Fill Out This Command In Terminal

Jun 20, 2009

can someone please tell me how to fill out this command in terminal?

./compressIt /to/image/file.iso

View 3 Replies View Related

OS X :: Terminal Says Command Not Found?

Jul 2, 2009

Last login: Tue Jun 30 15:38:02 on console

-bash: 2-18-09: command not found


I can use the Control>C command to quit that and return to normal. But it's a waste of time and I can't seem to figure it out. A Genius Bar Genius said to Archive and Install, but I don't think it's necessary. I just want to know how I can find whatever it is that's screwing it up.

View 14 Replies View Related

OS X :: Cannot Run Sudo Command In Terminal

Nov 29, 2009

I can't seem to run a sudo command in the OS X terminal. Every time I run a sudo command, I get no response, as if the command is not run at all. My sudo appears to be broken somehow. I've got a problem with mounting an NTFS drive that is dirty. I have a command I am trying to run using the "sudo" command, but it is not working.

Code: sudo /usr/local/bin/ntfs-3g /dev/disk0s3 /Volumes/WIN XP -o force

After the sudo, I am prompted for my password, but after that the only response I get is another prompt, as if the command was totally ignored. I have tried many different commands after the sudo, and cannot get a response from anything. I even tried "sudo tcsh", which should open up a new shell, but nothing. "sudo ls" also shows nothing, just another prompt.

View 11 Replies View Related

OS X :: How To Run A Terminal Command When Logging In

Jul 23, 2010

What is the best way to run a terminal command when logging in? And by �best� I mean �fastest.� I�ve been encapsulating my commands in an Applescript, but it�s terribly slow to load, and I�m hoping there�s some UNIX back-end I can use to speed things up.

Specifically, I want to run a shell script that I wrote. It decrypts some folders inside my Home directory so I can use them (this part works seamlessly, I just need it to auto-run itself).

View 13 Replies View Related

OS X :: Use Installer From Command Line?

Oct 29, 2009

Trying to install a .pkg from the command line in single user mode. I'm using the command "installer -pkg Installer.pkg -target / The .pkg is on a mounted USB drive. / is also mounted. When I run the command, the screen scrolls to a new blank line and stays there but nothing happens. The light on my USB indicates no data transfer is happening. I get no output, even if I add -verbose to the command.

View 10 Replies View Related

OS X :: Command For Opening Files In Terminal?

Jun 25, 2006

You'd think this was all pretty basic. It probably is.

I'm trying to open/edit '/usr/local/php5/lib/php.ini' with TextWrangler through Terminal. The TextWrangler part isn't an absolute requirement. The directory exists and I'm assuming the file does as well. (No 404-esq errors during my fumblings and it was a standard installation of PHP5)

Also, is there any way to browse through the above directory using the Finder's GUI? That would be nice.

View 5 Replies View Related

OS X :: Terminal Erase Disk Command?

Apr 22, 2009

I need to erase a disk I bought with NO formatting. I shouldn't have initialized it when I connected it, and now I need to erase it but do NOT want to format it.

I've been trying to use diskutil eraseDisk %noformat% /dev/disk1

Like the diskutil eraseDisk instructions tell me to, but it won't take.

View 3 Replies View Related

OS X :: IP Address Terminal Command On Network?

May 27, 2009

I used to know a command that would show all of the ip address and the name of the devices on your network. I have not use the command in a while and I forgot it.

View 11 Replies View Related

MacBook Pro :: Can I Screw Up My Mbp With This Terminal Command

May 28, 2010

Just bought a new MacBook Pro yesterday and I'm having trouble getting Time Machine to work with my NAS (WD My Book World Edition which supposedly supports Time Machine after their last firmware update). Time Machine sees it and starts writing to it but then stops recognizing the external NAS drive even though it's still connected to the network and I can access it and its files through the Finder.

So I did some Googling and came across this article and this command line...

View 9 Replies View Related

OS X V10.5 Leopard :: Undo A Terminal Command?

May 12, 2012

I was frustrated with Google Chrome quiting whenever I accidently pressed command q, so I tried out some terminal commands I found online. One was defaults write NSGlobalDomain NSUserKeyEquivalents '{"Quit Google Chrome" = "@Q"; "Preferences..." = "@;";}' I don't know what the other was. They stopped chrome from quiting with command q, but now I can't quit chrome AT ALL.  Is there a way to undo everything I've ever done in terminal?  I should not be touching it...

View 5 Replies View Related

OS X Mavericks :: Removing Terminal Command

Dec 5, 2014

I would wish to remove this command

defaults write com.apple.finder NSQuitAlwaysKeepsWindows -bool true 

What would be the terminal command?

Info:
iMac, OS X Mavericks (10.9)

View 5 Replies View Related

OS X :: Lag In Print Time / Between SEND Command And Starting Of Printer

Nov 23, 2008

I have had difficulty in attaching my HP Photosmart C5580 printer to my new MacBookPro (OSX 10.6) through my Netgear WGPS606 print server. After much searching I found previous posts here which advised me to add the Gutenprint driver 5.2.6 which I did. That finally DID successfully attach the printer through the server...

However, there is a lag of many seconds (sometimes minutes) between the SEND command and the starting of the printer. Is this the new normal that I need to expect or is there a fix?

View 1 Replies View Related

OS X :: Test Memory From Command Line In 10.5?

Apr 22, 2008

I read somewhere that memtest can be used to test the memory of your mac. I tried it and it didn't even know what memtest was. Is there a way to test the memory in the unix shell?

View 3 Replies View Related

Software :: Getting Value Of Find Command Line

Sep 9, 2008

I want to have the value of the batch command find. I've written the following but it don't work. Perhaps I'm missign something. if [ find /Applications/Autonome/test.log = 0 ] ; then echo "file not found !"

View 1 Replies View Related

OS X :: Command Line To Use To Kill A Process Using Its Name?

Oct 14, 2008

Can anyone tell what is the command line to use to kill a process using its name.
I'm on Mac OS X 10.4 Tiger PPC et Mac OS X 10.5 Leaopard Intel

View 1 Replies View Related

OS X :: Geektool - More Then 1 Function In Command Line?

Nov 15, 2010

im trying to display "Monday | November 15" and I have "date +%A" to display the weekday, "date +%B" to display the month, and "date +%d" to display the date number.. but somethin like "date +%A | date +%B date +%d" doesnt work.. I know I can create 3 shell boxes to do this, but I rather learn for the future so how do I do this all at once?

View 1 Replies View Related

OS X :: Command Line Configuration Of Screensaver?

Mar 29, 2006

so i found pmset for managing power management from the commandline, and it's great. my question is, is there a similar command for controlling the screensaver? all i really want to do is turn it off (or on) remotely.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved