10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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
2. Shell Programming and Scripting
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
3. Shell Programming and Scripting
Hi guys, I'm new here and new to shell scripting so don't be hard on me
I'm trying to create a bash script to restart a process by name in Mac OSX.
I have no problem killing the application, the problem comes when launching it again.
I managed to store the path in a variable lets say
... (8 Replies)
Discussion started by: jonathanwiesel
8 Replies
4. Shell Programming and Scripting
Hello
I have a Perl script that works on non-darwin Mac OS X environments and I think I have narrowed down the issue to a file locking problem.
In other linux environments, the flock struct is defined differently. I have adjusted this via the reference for Mac OS X fcntl(2) man page. The... (4 Replies)
Discussion started by: flagman5
4 Replies
5. OS X (Apple)
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
6. Shell Programming and Scripting
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)
Hi there.
I have an MacBookPro and I want to install Darwin ports.
I downloaded & installed MacPorts-1.7.0.pkg and now I don't know what to do.
I tried: # port -d selfupdate
....
error 1
Command output: checking build system type... i686-apple-darwin9.7.0
checking host system type...... (7 Replies)
Discussion started by: hirohitosan
7 Replies
8. UNIX for Dummies Questions & Answers
This is the first time I've come across this issue
sed -i 's/"//g' iscrmireturns
sed: 1: "iscrmi": command i expects \ followed by textApparently the -i option is non-standard FreeBSD extensions - does that mean it's not available on Darwin? Strange (1 Reply)
Discussion started by: platz
1 Replies
9. OS X (Apple)
Did anyone here about GNU-Darwin?
http://gnu-darwin.org/
Read Bout it!
And Darwin can be found here:
http://www.opendarwin.org
Tell me what U think (4 Replies)
Discussion started by: RedVenim
4 Replies
10. UNIX for Dummies Questions & Answers
so, what's everyone's opinion on Darwin (x86 rendition)?
is it worth installing at the moment?
pros? cons? comments? (5 Replies)
Discussion started by: Karma
5 Replies