The tag has no usage guidance.

learn more… | top users | synonyms

3
votes
2answers
876 views

Where to set JAVA_HOME in Ubuntu

I am trying to configure Tomcat to know where JAVA_HOME is. I am used to Windows :) ...which file should I edit to add the Java info, and where is it located?
27
votes
4answers
93k views

Get directory containing the currently executed batch script

I use %0 in batch file to get the containing directory of the batch file but the result is :- c:\folder1\folder2\batch.bat I want just directory, without batch file name, like this :- c:\folder1\...
3
votes
2answers
3k views

Changing PATH Environment Variable for all Users. (Ubuntu)

I recently compiled Ruby Enterprise Edition (REE) on an Ubuntu 8.04 server. I would like to update my PATH to ensure this new version of Ruby (found in /opt/ruby_ee/bin) supersedes the older version ...
1
vote
3answers
277 views

How do I set the path in OSX in a particular order?

I need to set the PATH environment variable in OSX in a particular order (i.e. with /usr/local/bin first in line). The recommended way to set PATH variables seems to be the /etc/paths files and the /...
5
votes
3answers
8k views

Escaping spaces in a remote path when using rsync over a remote SSH connection

When using SSH to connect rsync to a remote server, how do you escape spaces and such in the remote path? A simple backslash escapes the space for the local bash prompt, but on the remote machine the ...
0
votes
1answer
673 views

How to set global PATH on OS X Server 10.6.6?

I'm running Tomcat on OS X Server 10.6.6 under the normal Web component that comes with the OS. This has worked fine so far, but I need to add some entries to the $PATH environment variable for ...
6
votes
1answer
3k views

IIS 7.5 (Express) applicationhost.config: Can a virtualDirectory's physicalPath be a relative path?

I'm configuring a site in applicationhost.config for IIS 7.5 Express: <site name="default" id="1" serverAutoStart="true"> <application path="/"> <virtualDirectory path="/" ...
1
vote
1answer
40 views

Understanding URLs in Apache on Mac

Running Apache on Mac Snow Leopard (ie Web sharing enabled). Paths are evaluating in ways not expected: example.com/folder is returning a file (sans exception) instead of a folder. If I make a call ...
0
votes
1answer
208 views

tcsh PATH env variable not respected amazon web services

I've got an Amazon EC2 instance with the 64bit Linux AMI. I changed my shell to tcsh and then set up .tcshrc with PATH = ".:/usr/local/lib/play-1.1:$PATH" After a $ source ~/.tcshrc $ echo $PATH ...
0
votes
2answers
327 views

Long file path returning 404 for “hello.htm”

I have a long file path that works on my server, but a simliar path returns a 404 error when it is on my clients (IIS6) server (http://ddmat.com/). Here's the functioning file path on my server: http:...
2
votes
2answers
5k views

Modify default PATH environment variable in Solaris 10

I know I could modify /etc/profile.. but is there a better way? I know /etc/profile will affect terminals but I want all processes to be affected. crontab, service manager, startup scripts, etc.. ...
1
vote
1answer
160 views

Linux / UNIX / OS X Binary Directory Structure

Will Linux / UNIX / OS X binaries be stored in the same directories across different platform or distributions? I'm asking because I need to have access to uuidgen (stored in /usr/bin/uuidgen on my ...
0
votes
3answers
63 views

Installation path for root

My understanding of paths is that ~/.jungledisk/ means the path is relative to the current user. If that's true, if I installed this as root, where did it go?
0
votes
2answers
533 views

linux terminal:how to search path in windows pc?

i'm newbie in linux, and i work with linux terminal to control another linux pc(client). Beside that, i have some permition to access windows pc. They give me some IP address, user, and password. ...
1
vote
1answer
104 views

how do i get terminal in osx to use the python version installed in /opt/local/bin rather than the one in /usr/bin

at the moment my $PATH looks like... /opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin but then whereis python2.6 returns /usr/bin/python i need to use /opt/...
0
votes
2answers
796 views

greengeeks drupal install imagemagik 'path /usr/bin/convert' does not exists error

I just signed up with greengeeks. I have a drupal install (6.19) on my public_html directory. The ImageMagic Toolkit can't find the binary - the error I get is "the path /usr/bin/convert" does not ...
9
votes
1answer
4k views

Make IIS see updated environment PATH variable

We've installed Oracle Express on a Windows 2003 Server and in the process it updated the PATH. We're trying to get IIS to see this change in the PATH but we can't figure it out. We've recycled the ...
8
votes
6answers
3k views

Prune duplicate entries from PATH variable

I modify my .bashrc frequently and then source it. However, when I have things like export PATH="~/bin:~/perl5/bin:$PATH" in my file, then the PATH environment variable grows every time I source the ...
0
votes
2answers
179 views

Copying files (of a particular extension) remotely onto local computer preserving paths

I have bunch of files on the remote server. I'm not interested in most of them, except for .pl files. I want to get a copy of these on my local computer. What is the best way to do this (at the ...
0
votes
2answers
2k views

How to serve dynamic pages outside the document root?

I'm trying to setup a simple web app and I'm having some difficulties. Here's how I have it setup : /srv/www/application <-- python code /srv/www/public_html <-- document root I want Apache ...
0
votes
1answer
213 views

path as variable

BACKUP_SERVER_NAME="name" BACKUP_SERVER_USERNAME="user" COPY_FILE_TO_WINDOWS="/cygdrive/c/unix_test_copy" scp -r /$1/ $PRIMARY_SERVER_USERNAME@$PRIMARY_SERVER_NAME:$COPY_FILE_TO_WINDOWS How can I ...
0
votes
2answers
307 views

Make bridge table with UDP packet

Assume that all bridge table was empty (or at least don't have source and destination of my connection ) and want to update their bridge table with my sending packet (when I send packet all bridge ...
1
vote
1answer
314 views

Where can $PATH be defined for non-login shell on Red Hat

I need to add a directory to the path for non-login shells on a Red Hat Server. ssh user@server echo \$PATH returns /usr/local/bin:/bin:/usr/bin How can I add a directory to this path. I ...
0
votes
2answers
3k views

How to concatenate environment variable paths in a cleaner way in bash?

In order to modify my paths (like LD_LIBRARY_PATH or PYTHONPATH), I first check is the variable exists. If so, I'm concatenating my old value with the new one (separated with a semicolon), else I'm ...
1
vote
5answers
305 views

How can I modify path of a user with no home folder?

I have a user on my RHEL5 system whose home folder is /tmp. This user is for running some monitoring tasks, it doesn't represent a human being. What are the options for modifying this user's PATH ...
0
votes
5answers
2k views

Problems with sudo in path

Using: Linux nomemory 2.6.32-24-generic #43-Ubuntu SMP Thu Sep 16 14:17:33 UTC 2010 i686 GNU/Linux I have a folder in my $HOME called ~/.scriptfarm/scripts where i keep some of my custom scripts. ...
1
vote
2answers
2k views

Nginx gives an incorrect CSS mime type when path contains dashes

We migrated our web servers to Nginx mainly for performance reason, flexibility and ease of configuration (In this regard, a great load of satisfaction!). However, only one site showed a strange ...
0
votes
2answers
127 views

How do I set the PATH environment variable to point to JRE version 1.5

Hi there I have a program that requires me to set the PATH environment variable to point to JRE version 1.5 as I need to access the program via a command prompt. So any ideas on how to do that?
4
votes
3answers
774 views

Why is my $PATH variable for root different when I use su root

When I was trying to run chkconfig as an ordinary user (on CentOS 5) I realized that I could not access it because the directory, sbin, is not in my $PATH. When I su to root it still doesn't work. I ...
1
vote
1answer
1k views

sed can't find a file that obviously exists

I run the following command which comments out all lines that contain the text "dlclose" grep -lIR "dlclose" . | grep -v ".svn" | xargs sed -i "s/.*dlclose.*/\/\/&/g" However, sed claims that ...
0
votes
1answer
108 views

Standard apache subdomain locations

Is there a standard location for subdomain folders? I used to make folders for each subdomain in /var/web. I'm redoing my server and I want to make everything as clean as possible. The Django ...
2
votes
2answers
112 views

Powershell - can I avoid typing .\ if I want to execute something from the current folder?

I'm trying to switch from cmd.exe to Powershell, but I'm very annoyed by the fact that if I try to execute something from the current folder, I have to type .\ before it, just like in Linux. Is there ...
1
vote
1answer
2k views

How to change cron PATH permanently?

We need /usr/local/bin in cron's path! this way: http://discuss.joyent.com/viewtopic.php?pid=213759 didnt work for us.
0
votes
2answers
2k views

How to set the ery globap $PATH in Ubuntu 10.04 Server?

On Ubuntu 10.04 Server, where can I adjust the essential $PATH environment variable value which will all applications and all users see?
0
votes
2answers
1k views

How to indicate all files in all subdirectories in unix shell?

I'm using Max OS X. I'm trying to copy all header files (.h) to specific directory (./aaa) from all subdirectories in source directory. (./src/) This command worked well. cp ./src/*/*.h ./aaa But I ...
2
votes
2answers
334 views

Apache Error Log - “Web Path” instead of Filesystem Path

I'm running Apache on Linux and I'm using OpenSSH to provide SFTP access to some customers so they can upload their pages and also look at their respective site logs (access & error). I'm using ...
0
votes
3answers
621 views

Compiling Ruby on Mac OS X Snow Leopard

I am trying to follow this tutorial, on the subject of compiling ruby and rubygems on Snow Leopard: http://hivelogic.com/articles/compiling-ruby-rubygems-and-rails-on-snow-leopard I have added this ...
3
votes
1answer
836 views

How do you use environment variables, such as %CommonProgramFiles%, in the PATH and have them recognized by services.exe?

I'm trying to add C:\Program Files\Common Files\xxx\xxx to the system PATH environment variable by appending %CommonProgramFiles%\xxx\xxx to the existing path. After rebooting, I open a command ...
0
votes
3answers
5k views

How to know the full path of a file using SSH?

I am beginner for SSH stuff but i want to dump a big sql file and for that i need to be able to navigate to the appropriate path in my hosting account. I managed to login to SSH and i typed pwdbut it ...
0
votes
2answers
508 views

Updating the $PATH for running an command through SSH with LDAP user account

I am setting up a Mac OSX 1.6 server to host Git repositories. As such we need to push commits to the server through SSH. The server has only an admin account and uses a user list from a LDAP server. ...
0
votes
2answers
2k views

Problem in accessing Windows shared folder on Ubuntu using terminal

Description I have 2 systems with me, one running on Windows(Host) and one on Ubuntu, both on a LAN. On the Windows(Host) I develop software intended for the Linux system and because the Linux system ...
1
vote
2answers
2k views

Setting module path in lighttpd config file?

What is the option in lighttpd.conf to set the default path for lighttpd to look for modules? My lighttpd would not start because it keeps looking for critical modules at the default path, and I had ...
2
votes
1answer
530 views

OSX problem starting FTP from preferences

When I try to enable the FTP service in the preferences (File Sharing->Options->Share Files and Folders Using FTP) the check box enables and then disables again. The console is giving me the message :...
3
votes
2answers
3k views

How to set PATH variable on Mac OS so that even non-terminal apps see it?

I need to add a directory to my PATH variable on Mac OS. I added it in .bash_profile and .profile, and that works for the terminal. But Emacs (http://emacsformacosx.com) still does not use the new ...
0
votes
1answer
61 views

Is there some trick to replace rebooting in windows?

I've added the directory of php.exe to PATH variable,and it's available for administrator,but it's not available for user daemon. But it's available after rebooting,why is rebooting necessary?Is ...
2
votes
2answers
15k views

Make PATH variable changes permanent on openSuse

Okay, so I'm trying to do something that should be rather simple but for some reason I can't quite seem to make it work. All I simply want to do is add a path to the PATH environment variable in ...
1
vote
0answers
243 views

DOS path not resolving in VM

As a developer, I had our systems team setup a VM of a server to practice an upgrade of an old third party application. This server has its own instance of SQL Server 2000 that's used exclusively for ...
0
votes
3answers
1k views

Console apps don't work in Powershell

I've inherited a Windows Server 2003 r2 box. I've got a Powershell script that I'd need to get running on the machine, but something seems terribly wrong with the system. For example, opening a ...
53
votes
4answers
122k views

Adding a directory to $PATH in CentOS?

We just got our new server(s) up and we're running CentOS on them all. After successfully installing Ruby Enterprise Edition, I would now like to add the REE /bin (located at /usr/lib/ruby-enterprise/...
0
votes
3answers
702 views

How to get executable path on Linux

I am calling a 'executable' on Linux. One way by console and another from PHP script. They both call other executable (i see it by version of file). So I need a way to display a path to executable ...