The tag has no wiki summary.

learn more… | top users | synonyms

3
votes
5answers
2k 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
155 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
1k 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
158 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 i can ...
0
votes
2answers
292 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
295 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
1k 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
284 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
1k 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
108 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
578 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
326 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
97 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 ...
5
votes
3answers
7k views

Window 256 characters path name limitation

after a long research, I finally found out that pathnames cannot be longer than 256 characters even in the latest Microsoft Windows 7. I really don't get it why there is such a stupid limitation, ...
2
votes
2answers
107 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
753 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
311 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
614 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
667 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
3k 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
462 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
1k 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
1k 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
478 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 ...
2
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
60 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 ...
1
vote
2answers
7k 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
210 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
807 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 ...
25
votes
4answers
62k 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 ...
0
votes
3answers
484 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 ...
8
votes
3answers
9k views

why can't macports find make

I am trying to run macports like thus: port install php5 When I do so, however, I get this error: Error: Unable to open port: can't read "build.cmd": Failed to locate 'make' in path: ...
0
votes
2answers
116 views

How to upgrade the version of Python used by Apache?

On a Red Hat box, I upgraded Python from 2.3 to 2.6.4 and changed the symlink to python so when I type in python the 2.6.4 interpreter comes up. However my .py file works from the command-line, but ...
0
votes
3answers
4k views

psExec doesn't have path

I have a brand new windows 2008 server (64 bit), and the remote deployment scripts using nant and psExec are not behaving like they do on the old servers. This works: psExec \\newserver.myco.com cmd ...
2
votes
3answers
7k views

How do I set the global PATH environment in a batch file?

The group policy in our environment overwrites the PATH variable every time I log on and, as I run a 'non-standard' computer, it gets it completely wrong (C:\Windows vs C:\WINNT, missing directories ...
1
vote
2answers
183 views

Unable to get defined path in 'source' type on AIX node

I am trying to create a set of users on my AIX node and trying to get their authorized_keys which are already hosted on my server with name like, 'myuser_id_dsa.pub'. Currently i am managing 2 nodes ...
1
vote
1answer
2k views

Calling a batch file using relative path

Oh gosh, gotta expose myself as a noob here ;) In Windows, I need to execute a batch file in a subdirectory of the working directory. However, just running subdir/foo.bat cmd1 cmd2 does not work, and ...
1
vote
2answers
937 views

OSX Leopard - PATH change doesn't persist

I tried to change the $PATH using the following command: export ...
0
votes
2answers
376 views

where is the “module” a command coming from - aka why it doesn't show up in alias?

Consider the following: $ module cmdModule.c(166):ERROR:11: Usage is 'module command [arguments ...] ' Modules Release 3.2.6 2007-02-14 (Copyright GNU GPL v2 1991): Usage: module [ switches ] ...
1
vote
2answers
127 views

System path does not extend to all accounts?

In Control Panel->System->Advanced->Environment Variables, the PATH variable in the bottom part (the system, not just my profile) contains my perl path. Yet when I try to run system('perl ...') from ...
0
votes
6answers
857 views

Whence for Windows?

I'm trying to determine the location of an executable (java.exe) on Windows. I know it must exist somewhere in the PATH since I can run it, but I don't know the exact directory that it is being run ...
0
votes
4answers
5k views

Path for Windows Services?

I've got a service that I need to start as a different user to 'Local System' There is a user specific PATH I need to add to the default path in order for the service to work correctly. The default ...
4
votes
2answers
4k views

ErrorDocument in .htaccess, is it possible to use relative path?

This doesn't work: ErrorDocument 401 ../../src/wrong_pwd.php it renders the path as text, it really prints ../../src/wrong_pwd.php and doesn't output the real file. If I put the absolute ...
4
votes
2answers
3k views

pkg-config on Mac Doesn't find Libraries

I have been installing a bunch of libraries lately from the GNOME sources on Mac. They use pkg-config. Every time I run a configure, it complains that it can't find library XYZ, which I installed to ...
3
votes
2answers
981 views

Running a program remotely with SSH, but it won't use my .bashrc and the PATH is wrong

I'm trying to run a command remotely with SSH, but my problem is that when I do that, my .basrhc doesn't get executed, and so the PATH is all wrong and my script is breaking. What I'm doing is ssh ...
18
votes
2answers
9k views

How to keep the full path with rsync?

When backing up with rsync, How do I keep the full directory structure? For example, the remote server is saturn, and I want to backup saturn's /home/udi/files/pictures to a local directory named ...
3
votes
4answers
385 views

How to avoid the ./ when executing a shell script?

I used to know a way to run my shell scripts just by typing there name as long as there were in my home folder or desktop. I hate having to type ./myscript.sh. I would like to be able to type just ...