Sponsored Content
Top Forums Shell Programming and Scripting open application with spaces in name [bash][OSX] Post 302677997 by balajesuri on Friday 27th of July 2012 04:17:18 AM
Old 07-27-2012
Or escape the spaces:
Code:
cd /Users/myuser/Application/Google\ Chrome.app

 

9 More Discussions You Might Find Interesting

1. OS X (Apple)

Help! What is best language to use to build OSX application?

Hi, We need to build an application for work that will run on OSX. It will be fairly simple, in which the user will use a mouse to grab objects on the screen and move them to a target location. The program will need to record information about accuracy and speed, and output that data at the end. ... (1 Reply)
Discussion started by: binarybabe
1 Replies

2. UNIX for Dummies Questions & Answers

Which application has a TCP socket open

If I do a netstat -a I can see all the sockets currently open, is there a way that I can tell which application is holding open these sockets ? (3 Replies)
Discussion started by: murphyboy
3 Replies

3. UNIX for Dummies Questions & Answers

Upgrading bash on Darwin (osx)

Hi, I have installed bash 3.2 via darwin ports, however when I try and change the shell i.e. chsh -s /opt/local/bin/bash is says its a non-standard shell? but if i run ./bash i get a new bash prompt with version 3.2? Thanks (3 Replies)
Discussion started by: c19h28O2
3 Replies

4. Shell Programming and Scripting

Open file with correct application

Can someone please help me with my bourne shell script. I am a struggling newbie. I need create a script that will read an argument from a command line, access a config file with application file types, and open the file with the correct application. The file needs to be able to handle file... (3 Replies)
Discussion started by: 3dtiger
3 Replies

5. OS X (Apple)

Check for open application

Hi there, Is there any command to check if a particular application is open on a mac? thanks :) (3 Replies)
Discussion started by: davewg
3 Replies

6. Shell Programming and Scripting

#!/bin/bash and #1bin/sh command not found error on mac osx terminal/shell script

i am having a weird error on mac os x running some shell scripts. i am a complete newbie at this and this question concerns 2 scripts. one of which a friend of mine wrote (videochecker.sh) a couple weeks ago and it's been running fine on another machine. then last week i wrote capture.sh and it... (2 Replies)
Discussion started by: danpaluska
2 Replies

7. OS X (Apple)

bash script for dseditgroups in OSX

Hi there, Hope this isn't too complex of a script to try to make but this is what I'm trying to do. Create a new group and add local users that aren't admin to the group. So let's say the new group is 'cats' and 'dog' is the only admin on the machine. Let's say most machines only have one... (4 Replies)
Discussion started by: stop.the.stupid
4 Replies

8. Shell Programming and Scripting

OSX, bash, cat with <<MARKER executing commands

I have a script that writes another script with cat >/usr/local/bin/myscript.sh <<EOF #!/bin/sh VAR=`run a command here` EOF Problem is, after this is run, I get: $ cat /usr/local/bin/myscript.sh #!/bin/sh VAR=result of command How do I stop that from happening with Macs... (2 Replies)
Discussion started by: jnojr
2 Replies

9. Shell Programming and Scripting

OSX bash & expect

I have a script that must perform a 'sudo' operation on each of a number of hosts. I'm trying to get expect working so I only have to enter it once, and have run into a couple of issues. First, several examples suggest to use: /usr/bin/expect <<EOD spawn ssh -t $host /usr/bin/sudo -v... (7 Replies)
Discussion started by: jnojr
7 Replies
CGI::Application::Dispatch::Regexp(3pm) 		User Contributed Perl Documentation		   CGI::Application::Dispatch::Regexp(3pm)

NAME
CGI::Application::Dispatch::Regexp - Dispatch requests to CGI::Application based objects using regular expressions SYNOPSIS
use CGI::Application::Dispatch::Regexp; CGI::Application::Dispatch::Regexp->dispatch( prefix => 'MyApp', table => [ '' => { app => 'Welcome', rm => 'start' }, qr|/([^/]+)/?| => { names => ['app'] }, qr|/([^/]+)/([^/]+)/?| => { names => [qw(app rm)] }, qr|/([^/]+)/([^/]+)/page(d+).html?| => { names => [qw(app rm page)] }, ], ); DESCRIPTION
CGI::Application::Dispatch uses its own syntax dispatch table. "CGI::Application::Dispatch::Regexp" allows one to use flexible and powerful Perl regular expressions to transform a path into argument list. DISPATCH TABLE
The dispatch table should contain list of regular expressions with hashref of corresponding parameters. Hash element 'names' is a list of names of regular expression groups. The default table looks like this: table => [ qr|/([^/]+)/?| => { names => ['app'] }, qr|/([^/]+)/([^/]+)/?| => { names => [qw(app rm)] }, ], Here's an example of defining a custom 'page' parameter: qr|/([^/]+)/([^/]+)/page(d+).html/?| => { names => [qw(app rm page)] }, COPYRIGHT &; LICENSE Copyright Michael Peters and Mark Stosberg 2008, all rights reserved. SEE ALSO
CGI::Application, CGI::Application::Dispatch perl v5.14.2 2011-11-26 CGI::Application::Dispatch::Regexp(3pm)
All times are GMT -4. The time now is 07:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy