terminal

Linux: Possible to extend and Alias?

A simple example: Let's say I have one alias being sourced somewhere as: alias ls 'ls -o' I'd like to have a second alias add on to this: alias ls 'ls -a' So that when I execute it, I'm really getting: ls -o -a Is this possible? Of course in the above example, the second overwrites the first. Why would I want this? The first...

How come the unix locate command still shows files/folders that aren't there any more?

I recently moved my whole local web development area over to using MacPorts stuff, rather than using MAMP on my Mac. I've been getting into Python/Django and didn't really need MAMP any more. Thing is, I have uninstalled MAMP from the Applications folder, with the preferences file too, but how come when I run the 'locate MAMP' command i...

How to use a linux command for set of files

Hi all, I'm looking for a solution to convert a set of files using the terminal and the command "convert" under linux. I can use "convert" for each file: convert -quality 85 file.jpg file.jpg But i'm looking for something like: for each jpg do convert -quality 85 $file $file end Can someone tell me, which command i can use? ...

Why is the "terminal speed" of a native linux telnet client 0,0 when spawned from Java (and how can I fix it)?

I'm unable to login to an HPUX host using telnet when the telnet process is created by a Java program. When I telnet to the HPUX host from the command line (from bash), I am able to login and use the session. When I spawn the telnet process from Java, something strange happens. I am prompted for the username and submit it. I also get t...

How do I make directory writable?

How do I make a directory writable, from the Mac terminal? ...

How do I detect whether sys.stdout is attached to terminal or not?

Is there a way to detect whether sys.stdout is attached to a console terminal or not? For example, I want to be able to detect if foo.py is run via: $ python foo.py # user types this on console OR $ python foo.py > output.txt # redirection $ python foo.py | grep .... # pipe The reason I ask this question is that I want to make su...

Where do I put my ruby program on mac when opening with terminal.

I'm following this guide: http://www.math.umd.edu/~dcarrera/ruby/0.3/chp_01/programs.html and I'm trying to create my first ruby program. So I wrote it in a text editor, but now I dont know how to open through terminal. Rather, where should I be saving the program to (directory). Thanks! (I'm new to programming on mac) :( ...

NSLog not printing to terminal

Ok, so I've been using NSLog in objective-C for awhile now to debug and I know it's supposed to print to the terminal whatever I put in the parentheses. For some reason, it just stopped printing to the terminal and I'm not sure how to fix this error. I was wondering what other people would suggest doing to fix this problem. I've only inc...

How to get repository for core-plot

I am not able to get the repository for core-plot. What I am doing is that I am typing this in the terminal: hg clone https://core-plot.googlecode.com/hg/ core-plot and this is what I get: Traceback (most recent call last): File "/usr/local/bin/hg", line 25, in mercurial.util.set_binary(fp) File "/Library/Python/2.5/site-packages...

terminal color in ruby?

hi is there a ruby modul for colorize strings in a linux terminal? ...

How to programmatically tell if the terminal server service is running

How can I programmatically tell if the terminal services service is running and is healthy? I'm creating a .net console application that will check if terminal services are running on a list of computers. I can check the remote registry entry to see if it's enabled, but that doesn't mean it's running. I was thinking of making a socket c...

P4 Diff on a Changelist

I want to get diffs on files in a specific pending changelist. I wish I could do this: p4 diff -c 999 Can someone help me string together some csh magic to make this happen? Maybe take the output of p4 opened -c 999 and piping it to p4 diff? ...

What RoR programs are used in this tutorial

I'm new to rails, and I'm watching this video tutorial online and I was wondering what programs are being using - I recognize terminal, but thats about it. http://media.rubyonrails.org/video/rails_take2_with_sound.mov ...

Can you use R terminal commands on a Mac computer?

Hi, I wrote some code in school to basically bring up different graphs from R and I had wanted to use it on a mac computer. Is there are way to use R terminal commands on a mac computer and is there a place where I could get more information about these mac R Terminal commands? Thanks so much! ...

problem in configuring clang static analzer

i follow the following steps to install and configure clang static analyser.but still i could not run scan-build command in project directory can anyone can give correct tutorial to set path and also run scan-build command.terminal shows "scan-build command not found" the steps i followed: Installation: Navigate to http://clang.llvm.org...

Mac OS X / Open terminal with specified windows

Is it possible to open a terminal window with 3 tabs. Each tab should have different path. Example: Tab1: /etc Tab2: /bin Tab3: /www/ tail -f file.txt ...

Mac OS X / Good terminal template

Does anyone know of a good terminal template? I prefere the black one but when I connect to a computer over SSH I get ugly bold fonts with strange collors :). THX! ...

Is there a linux based terminal app that allows links to be clickable?

Is there a unix based terminal (extension or app) that does link resolution. In particular when I see things like: /home/sam/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' /home/sam/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/benchmark.rb:17:in `...

uploading to ftp from terminal

hi, I have a huge repository of files and there is a .txt containing a large list that needs to be uploaded to an ftp server. I don't have ssh access. Is there an easy way to automate this using terminal so I don't have to go into ftp and manually go up and down the folders? Thanks {EDIT} I am using os x. I have fetch as a client. ...

OS X terminal command to resolve path of an alias

I'm writing a shell script which will rsync files from remote machines, some linux, some macs, to a central backup server. The macs have folders on the root level containing aliases of all files/folders which need to be backed up. What is a terminal command I can use to resolve the path to the files/folders the aliases point to? (I'll ne...