11-30-2006
Sorry but I wrote the following program
#include<stdlib.h>
main()
{
char *t=getenv("PS1");
printf("%s",t);
}
It gets the entry of environment variable and displays it. But I would like to have the execution result of that string.
5 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I would like to "BOLD" print the hostname in the following statement:
export PS1=$USER"@"$(hostname -s):'$PWD>'
Is there a special character I can put before and after the variable to make it bold or blinking?
Thanks. (4 Replies)
Discussion started by: pdtak
4 Replies
2. Shell Programming and Scripting
I am 100% new to Unix and trying to learn.
This is my first time even touching a script in Unix.
We have the following variable script that I am trying to run....
##################################
###### variable test###
##################################
Hostname=`hostname`... (3 Replies)
Discussion started by: LRoberts
3 Replies
3. Shell Programming and Scripting
Hi,
Always when I login to Unix, I need to give the following command to view the data properly;
export MAESTRO_OUTPUT_STYLE=LONG
The reason is that by default the settings export MAESTRO_OUTPUT_STYLE=SHORT
Please let me know how I could make LONG as the default and avoid giving the... (1 Reply)
Discussion started by: jmathew99
1 Replies
4. Shell Programming and Scripting
Hello:
Any bash PS1 gurus in the house?
I have a custom 2-line prompt and it displays fine, but there is an occasional anomaly.
The backspace key sometimes takes out the 2nd line.
Here's the relevant ~/.bashrc code:
MKF='This is my Kung-Fu'
DOS='C:${PWD//\//\\\}>'
PS1="\$MKF\n\\"
... (0 Replies)
Discussion started by: Habitual
0 Replies
5. UNIX for Dummies Questions & Answers
Hello...
I'm trying to setup a cronjob to record system data using glance at certain times of the day. My question is, how would one export the "Global System Calls" information to a file? Below is the command I have been using and it works to export CPU information.
glance -f ... (0 Replies)
Discussion started by: fumus
0 Replies