Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Questions regarding UNIX behavior towards a WINDOWS user

Status
Not open for further replies.

dkace

Full Member level 6
Joined
Jun 13, 2002
Messages
395
Helped
32
Reputation
64
Reaction score
7
Trophy points
1,298
Location
Greece
Activity points
3,562
Why....

Consider this topic as a continuance of the h**p://&highlight= Install Network printer under HP-UX 11i

The next in line questions regarding UNIX behavior towards a WINDOWS user:

a. When I have an executable of a program and I double click it a screen asking for some options and some arguments is poping up. What is this and what should I do?

b. When i write a script containing only the path of the application, I save it, I execute chmod +x to make it executable and I try to run it from the terminal ( I have bash). I see the following:
i. If I write down : bash-2.05b$ blabla , I get bash: blabla: command not found
ii. If i write down : bash-2.05b$ ./blabla the program will be executed.

On the other hand, if I write down: bash-2.05b$ mozilla, the browser will open at once.

I understand that ./ tells the bash to search on this directory ( or not?). How can I make it run without ./ ?

I tried the ln command. No luck. Can Someone give me an example?

Thanks,
D.
 

Why....

Actualy it's not only bash but all, unix shells like sh, chh, zsh ....
The reason for having to type ./ bifore not just a script but a binary executable too it is a securaty measure in nix systems, for instance if you type gzip the nix shells wuld ignore your current dir for a script or bin with this name and execute the one from /usr/bin, unlike windows the current dir isn't part of the path enviroment, I do know that SUSE's Yast has an option to change this, I don't exactly jnow what paramaters are changed in /etc but search the net and you'ld probobly find an awnser.
 

Re: Why....

Thanks for the tip III,

I run a plain unix, not a linux OS, so no changes can be made. I understand what you descibed as security measure, but tell me this:
The installed applications are running from usr/bin ( or something similar). If I move my exe script there will it run the same way? No. This is my question. You say that it is out of the question to run my own scripts as usual programs under unix?

D.
 

Why....

Well if U move your scripts to /usr/bin or better yet /usr/local/bin U could execute them by simply typing their name.
And there is an even better way with out using root privileges there is a file usually located in your home directoy or in /etc that defines the path, create a /home/<you>/bin dir and add it to your path, then u can just copy all of your scripts and bins here and execute them by typing their name in the shell
 

Why....

Hey I read about how to change your path variable:
Globally
do vi /etc/profile
and add your new dir to the lines starting PATH=
Locally
edit /home/username/.bash_profile
and add (if U want to add the dir /home/username/bin to your path
PATH=”$PATH:$HOME/bin
export PATH

;-)
 

    dkace

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top