Questions tagged [path]

218 questions
0
votes
2 answers

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?
Ivan
  • 3,398
  • 19
  • 50
  • 71
0
votes
2 answers

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 want to copy all header files in the…
Eonil
  • 10,459
  • 16
  • 36
  • 54
0
votes
3 answers

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 to my ~/.profile: export…
Misha Reyzlin
  • 155
  • 1
  • 1
  • 7
0
votes
2 answers

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. Now, since it is accessing the server through a…
0
votes
2 answers

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 has little external memory, my idea to overcome…
vikramtheone
  • 101
  • 1
  • 4
0
votes
1 answer

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 there some trick to replace rebooting?
vps
  • 1,227
  • 3
  • 13
  • 14
0
votes
1 answer

Zsh function for checking for duplicate PATH entries and for occluded executables

This occurs on many systems and I expect someone has a solution for it. The PATH environment variable is a major part of security issues. For sanity's sake, the path portion of the .zshrc looks like: # Set…
0
votes
2 answers

Best Path for nginx Files

I've always struggled with various paths for nginx files and where they should be positioned. As we know, we can change where we can park both the www directories for our web app, as well as the associated log files. The issue that I've found is…
Rich_F
  • 125
  • 8
0
votes
1 answer

Is there a way in Nginx to remove a route specified in location from one domain and port and forward it to reverses proxy?

I want to connect example.com:80 and example.com:82 to a specific site through reverse proxy. localhost/api/buy/ -> http://example.com:80/ localhost/api/sell/ -> http://example.com:82/ I set up the config file as below. server { listen …
0
votes
1 answer

How do I do multiple nginx reverse proxies?

I want to connect example.com/api/buy and example.com/api/sell to a specific site through reverse proxy. So I am trying to connect through localhost/api/buy and localhost/api/sell with nginx. I set up the config file as below. server { listen …
0
votes
1 answer

Getting command not found using sudo, but not for running command as root without sudo

wierd issue where if you use sudo command for certain commands it is not found. But runnning it as root user WITHOUT sudo does work root@ip-172-31-43-153:/home/ubuntu# sudo xfs_growfs -d / sudo: xfs_growfs: command not…
user2958456
  • 101
  • 1
0
votes
1 answer

Setup A Default Redirect In Nginx

I need a way to redirect clients when no existing path is defined. When I put a return 301 config in, nginx seems to ignore any location configs. It redirects everything. The hostname in the redirection needs to be dynamic (come from the client).…
Coldburn
  • 1
  • 1
0
votes
3 answers

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 Powershell console and entering ipconfig gets the…
saturdayplace
  • 263
  • 1
  • 3
  • 10
0
votes
1 answer

I need to rename a file and insert a date

I'm trying to set a daily process to locate a file, rename it and insert the previous date in the file name. I want the file to be named "Filename_MMddyyyy.csv" with MMddyyyy being the previous day. I managed to rename the file but I'm a total noob…
0
votes
1 answer

su - with automatic change directory once su command is done in shell scripting

im not familiar in shell scripting but im trying to achieve at least this script but my problem is once superuser rt is done logging in it brings me to this [rt@superuser root]$ instead of reading the second line, i would like to achieve at least…
1 2 3
14
15