shell

  1. A

    Writing a program that will send commands to another shell

    I know that if you are writting a C or C++ program, using the system(char *) function will send commands to the terminal command line. What I was wondering is how one could go about makeing a program that will launch another shell and then output its commands to that. For ex. If I write...
  2. michaelsanford

    [HOW TO] Preserve a custom shell $PATH after logout.

    I was struggling for some time to come up with an efficient way to add custom folders to the shell $PATH that would be retained after logout. This is the protocol I came up with. 1. With your favourite editor, create a file called ~/.path 2. In it, add lines of the format: set path =...
  3. kenny

    Cannot fork when opening shell?

    I've seen this before, and I think rebooting (or logout/login) fixes it, but it's happening again, and I'm hoping that someone has some insight as to how to prevent it in the first place. This is 10.2.3, BTW... On my iBook, I had Terminal open and tried to open a connection via ssh to my...
  4. D

    Cool Mac OS X shell scripts?

    I'm seeking some way cool shell scripts that are specifically for Mac OS X. Anyone have one to nominate? And/or one they'd like to see? Thanks!!
  5. J

    How does one launch an ".app" from a shell script?

    The subject kind of says it all. Since applications are ".app" directories, and executing the binary in the MacOS subdir doesn't seem to work, is there a way to launch a MacOS application from a shell?
  6. S

    Need help with a shell script

    Hello all- I have a situation where I need to run a shell script on login. I have never really written any shell scripts to speak of, and now this one has become a bit of an emergency to get running. This is the basic script that i'm using now: #!/bin/zsh /bin/rm...
  7. A

    Color in a shell

    Hi, I would like to know how it is possible to enable color in the zsh shell on Jaguar? It worked well on 10.1 with TERMINFO and TERMCAP, but the technique I used on 10.1 doesn't work on Jaguar. Thanks in advance, Arthur
  8. ApeintheShell

    terminal won't display new shell

    i started up the terminal today to write a paper in pico and it wouldn't display the shell. I tried stretching it and than went to preferences for the window and it showed 2500 columns 5 rows. That normal? anyone seen this sort of anomally?
  9. michaelsanford

    Getting a cocoa app to talk to the shell?

    I'm not new to programming, but very new to objective-c and PB (messaging, etc). How would I make a cocoa app talk to the shell (execute shell commands, once authenticated in the GUI, like BrickHouse does for example)? I'd like to (I must) do this invisibly, and not have it execute some...
  10. michaelsanford

    Shell script to rip form variable names to a file?

    I have a rather large for that I want to get the variable names from, so that I can quickly make a PHP page without having to recopy them all by hand. I've gotten this far cat ncf.html | grep -e '<input' | grep -e 'name=' But this just gives me the full lines of every instance of those...
  11. O

    Using Shell Scripting with MySQL Causes Access Denied Message

    I'm trying to write a shell script to log into MySQL, chose the correct database and run MySQL's \. command. The problem is that MySQL refuses the log in when running the command "mysql -uroot -pXXXX" through a script, if I type the command directly into the command line it works. I...
  12. P

    I can not get bash shell to work in 10.2

    I am having trouble with installing and running the bash shell on 10.2. I had bash running on 10.1 just fine but now with 10.2 upgrade I get errors like this. dyld: bash Undefined symbols: _tgetent _tgetflag _tgetnum _tgetstr _tgoto _tputs Trace/BPT trap What can I do to...
  13. xoot

    What is your favorite UNIX shell?

    Mine is tcsh. How about yours? :)
  14. D

    Reconnecting background job and interactive shell

    If I run a program that generates a lot of output with the "&" suffix, it will continue operating in the background, only that the output is not directed to the shell anymore. If I now logout of the shell that process will continue to run in the background, since it is no longer tied to the...
  15. I

    changing shell resulting in ftp problem?

    i used to work on linux systems and i am comfortable using bash rather than tcsh so i compiled bash and made it work as default i changed the default shell from netinfo and the next thing i know is that particular user stop having access to ftp server it said username access denied after i...
  16. M

    AppleScript front end to a shell script?

    hello, i have this shell script that is working very well, and i would like to make it double clickable. i would like to use an AppleScript GUI for it. the script is commented to hell, this is b/c the admins that will use it are not very unix savvy. right now i have it in the unix path...
  17. Koelling

    Shell Service

    This may be more of a UNIX related thread but I thought it fit more in the Hot Topics because it is so cool. It's really something to do with UNIX, but not actually seeing anything unix except a command or two. Shall I stop beating around the bush? It's called Shell Service 1.0. This is a...
  18. T

    tcsh shell problem?

    after attempting to install Xfree86 and XDarwin with failure, everytime I open my terminal app after it says "Welcome to Darwin!" AND BELOW the welcome it says "Too many ('s. " What does that mean? -Taz
  19. solo

    Obtaining the bash shell

    Possibly I wasn't using the right keywords for the search, but I have yet to find a site to download bash from:( . Any ideas? Also... Does anyone have some pointers on how to install it from source on OS X.1? Coming from Linux, I'd really like to have bash as my main shell. Any help is...
  20. E

    Shell changing . (periods) to / (slashes)

    I am using the terminal to execute java code. Here is something similar to what I would type. java -jar mycode.jar http://mysite.com/1.1.1/myothercode.jar The stuff after mycode.jar is an argument that is sent into the main() function of my code. This is standard java practice. My...
Back
Top