10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Is it possible to implement linked list in shell scripting? is yes then how can we do it? Any working example is highly appreciated.
Thanks in advance. (4 Replies)
Discussion started by: mukulverma2408
2. Shell Programming and Scripting
Basically what I am trying to do is making multiple fields of the same type comma-separated.
i.e. for a data like this:
Output should be like:
B00001 abc,def,ghi,jkl... (20 Replies)
Discussion started by: prohank
3. Shell Programming and Scripting
I have a script that will be querying the database every minute to see if it gets a response, the response its querying for is "UP" in a table i made called dbup in the database.
Now, I am trying to add the component to implement a timeout if the script does not get a... (2 Replies)
Discussion started by: mo_VERTICASQL
4. Shell Programming and Scripting
i was presented with a challenge that is beyond my current shell knowledge: how can you have a script that executed interactive will change your current working directory?
Example (under MacOS):
1. start Terminal and my current working directory is my home folder
2. execute a... (3 Replies)
Discussion started by: gigagigosu
currently, my samba login works just fine. i want my clients to use aix5.3 account to login to samba so they don't have to change samba pwd and aix pwd. i googled, and vi /usr/lib/smb.conf per some of knowledge base, but i could not get to work.
aix5.3 and samba 126.96.36.199
thanks in advace..... (2 Replies)
Discussion started by: tjmannonline
6. Shell Programming and Scripting
I want to implement a control mechanism using Shell scripts .The intention is to have controlled number of jobs running in parallel
External process will kickstart 40 jobs in parallel .All the 40 jobs will call the same generic script with different parameter values .But at a... (4 Replies)
Discussion started by: police
I am implementing a shell in C, with the following problem...
Suppose the shell is invoked from the command line as
>> myshell < test.in > test.out 2>&1
I have to execute the commands in test.in and redirect them to test.out
How does one detect in the main function that the shell... (1 Reply)
Discussion started by: jacques83
i hv attached herewith my program to implement a simple interactive shell in C. no matter hw hard I try, I keep getting some errors. i need help - urgently !!
proj1test7.c: In function `parseCommand':
proj1test7.c:102: warning: assignment makes pointer from integer without a cast... (2 Replies)
Discussion started by: nix1209
I'm implementing a shell in C that supports piping, output redirection, and background processing, and a few other commands. I was wondering how I'd go about implementing the output redirection. So, I'd open a file and I'd fork and execute the command. But how would I get stdout into the file? Any... (10 Replies)
Discussion started by: ununium
10. UNIX for Dummies Questions & Answers
hi, this echo $SHELL will give the shell name.. how to get the other list of variables (besides SHELL) values?
and also, different shells have different variable names (example SHELL) (10 Replies)
Discussion started by: yls177
pwd(1) General Commands Manual pwd(1)
pwd - Displays the pathname of the current working directory
Interfaces documented on this reference page conform to industry standards as follows:
Refer to the standards(5) reference page for more information about industry standards and associated tags.
The pwd command writes to standard output the full pathname of your current working directory. All directories are separated by a /
(slash). The first / represents the root directory and the last directory named is your current working directory.
The following exit values are returned: Successful completion. An error occurred.
The following environment variables affect the execution of pwd: Provides a default value for the internationalization variables that are
unset or null. If LANG is unset or null, the corresponding value from the default locale is used. If any of the internationalization vari-
ables contain an invalid setting, the utility behaves as if none of the variables had been defined. If set to a non-empty string value,
overrides the values of all the other internationalization variables. Determines the locale for the format and contents of diagnostic mes-
sages written to standard error. Determines the location of message catalogues for the processing of LC_MESSAGES.
Commands: cd(1), csh(1), ksh(1), Bourne shell sh(1b), POSIX shell sh(1p)
Functions: stat(2), getcwd(3)