9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Some question about the usage of shell scripts:
1.) Are the commands of the base shell scripts a subset of bash commands?
2.) Assume I got a long, long script WITHOUT the first line.
How can I find out if the script was originally designed für "sh" or "bash"?
3.) How can I check a given... (3 Replies)
Discussion started by: pstein
3 Replies
2. Shell Programming and Scripting
Hi,
I gave a command echo $SHELL --> To find out the shell I'm using, which gave me the below output
echo $SHELL
/bin/uvalid
what does it mean?
Please use code tags when posting data and code samples, thank you. (1 Reply)
Discussion started by: dnam9917
1 Replies
3. OS X (Apple)
Q1. I understand that /usr/local/bin means I can install/uninstall stuff in here and have any chance of messing up my original system files or effecting any other users. I created this directory myself.
But what about the directory I didn't create, namely /Users/m/bin? How is that directory... (1 Reply)
Discussion started by: michellepace
1 Replies
4. Shell Programming and Scripting
1. Accept a “userid” as a command line argument
2. Produce the following output:
User userid has a home directory of /path/directory
the default shell for this user is /path/shell
3. At this level, it may be assumed that the “userid” is a unique string in the file that is being searched
4.... (17 Replies)
Discussion started by: grandios
17 Replies
5. Solaris
Hi gentlemen.
For what intended is the directory /usr/local/bin? In this directory are some script.
I don't understand how these scripts being in this directory are started.
Each time after registration of the user occurs start of these scripts. These scripts start applications. (7 Replies)
Discussion started by: wolfgang
7 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I have a problem I don't understand with fuser.
I launch a simple shell script mysleep.sh:
I launch the command fuser -fu mysleep.sh but fuser doesn't return anything excepted:
mysleep:
Then I modify my script switching from #!/bin/sh to #!/bin/ksh
I launch the command fuser -fu... (4 Replies)
Discussion started by: Peuj
4 Replies
7. Shell Programming and Scripting
Hi there,
Anyone knows what would be the cons and pros of adding a script in ~/bin vs. a function in ~/.bashrc?
I'm not sure how the system keeps tracks of some of the settings loaded in ~/.bashrc (like functions and aliases). Would I be right in thinking that this would all be loaded into... (2 Replies)
Discussion started by: victorbrca
2 Replies
8. Shell Programming and Scripting
Hi,
I have a first shell script (/bin/sh) that receives some paremeters. This is only an example (there are more parameters in fact and this one is among them):
-header "This is a test"
This script calls a secund shell script (/bin/sh) with the same parameters. But, quotes disappear as I would... (0 Replies)
Discussion started by: velo_love
0 Replies
9. Shell Programming and Scripting
HI,
Nice to meet u... I am a newbie. I have met a problem in the work as following:
SRCLOG="/Share/log/testlog/*"
SRCLOG="/Share/log/systemlog/*"
SRCLOG="/Share/log/log.conf"
SRCLOG="/Share/log/message"
How can I get the file or directory value from each element of... (0 Replies)
Discussion started by: GCTEII
0 Replies