09-08-2008
Can something like this...
export PS1='${Hostname}:${PWD}>'
Only be used in a .profile in Unix?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
:cool:
I need to execute a shell script to do the following:
cat a file
run two back ground processes using the first two values from the file
wait till those background processes finish
run two more background processes using the next two values from the file
wait till those background... (1 Reply)
Discussion started by: halo98
1 Replies
2. UNIX for Dummies Questions & Answers
Howdie everyone...
I have a shell script RemoveFiles.sh
Inside this file, it only has two commands as below:
rm -f ../../reportToday/temp/*
rm -f ../../report/*
My problem is that when i execute this script, nothing happened. Files remained unremoved. I don't see any error message as it... (2 Replies)
Discussion started by: cheongww
2 Replies
3. Shell Programming and Scripting
o
hola..
Tengo un script que se ejecuta bajo una tarea del CronJOb del unix, tengo la version 11 de unix, mi script tiene un ciclo que lee unos archivos .txt luego cada uno de esos archivos debe pasar por un procedimiento almacenado el cual lo tengo almacenado en mi base de datos oracle 10g,... (4 Replies)
Discussion started by: Kespinoza97
4 Replies
4. Shell Programming and Scripting
Hi All
I have a file containing the following information
SOURCESERVER DESTINATIONSERVER DESTINATIONENVIRONMENT CONDITION
I was trying to read and then execute the conditions,like if SOURCESERVER is XXXX0001 and the DESTINATIONSERVER is XXXX0002 and the DESTINATIONENV is YYY the... (3 Replies)
Discussion started by: bkan77
3 Replies
5. Shell Programming and Scripting
i wish to have a shell script which receives the file name and path (from the user) to a text file that contains a c program and compiles the program code using gcc and displays the execution of the compiled file (which is saved as filename.c) in the terminal / konsole
Can any one help me by... (1 Reply)
Discussion started by: anurag.mishra1
1 Replies
6. Shell Programming and Scripting
can someone tell me what is the difference between . and ./ in a script (3 Replies)
Discussion started by: TimHortons
3 Replies
7. IP Networking
I have a client machine that was built and loaded with SCO UNIX 2.1.3, (yes it is old). The machine worked fine on the closed network that I tested on in my shop. I then had to change it to the network that it would be connected to. Below is the host file, router and subnet mask file that I usually... (0 Replies)
Discussion started by: NC user
0 Replies
8. Shell Programming and Scripting
My script work on Linux but not work in sun os.
my script.
logFiles="sentLog1.log sentLog2.log"
intial_time="0 0"
logLocation="/usr/local/tomcat/logs/"
sleepTime=600
failMessage=":: $(tput bold)Log not update$(tput rmso) = "
successMessage="OK"
arr=($logFiles)... (7 Replies)
Discussion started by: ooilinlove
7 Replies
9. IP Networking
hi all. and sorry for the random question, but this sparkled a raging flame-war at work and i want more points of view
situation
a router, with linux of some sort,
dhcp client requesting for ip in wan1 (as usual with wan ports)
dhcp server listening in lan1, and assigning ip (as usual... (9 Replies)
Discussion started by: broli
9 Replies
10. UNIX for Dummies Questions & Answers
Please help me to understand the issue:
Issue: There are shell scripts in a user home directory (/home/user_1)
without execute permissions (rw-r--r--) to owner,group and world
These shell scripts were able to execute/work previously but its not working now and it says permission denied or... (2 Replies)
Discussion started by: MSK_1990
2 Replies
LEARN ABOUT OPENSOLARIS
registration_profile
registration_profile(4) File Formats registration_profile(4)
NAME
registration_profile - template for Basic Registration information
SYNOPSIS
registration.profile
DESCRIPTION
The registration profile is a template for the information provided for Basic Registration. The information in this template is consumed by
the sconadm(1M) utility. sconadm is the command-line alternative to the Basic Registration GUI.
An example of the registration profile template is provided in /usr/lib/breg/data/RegistrationProfile.properties. This file is owned by
root, with read-only permissions. As root, you can copy the file to a location of your choosing and edit the file.
The registration profile template contains the following properties:
userName=
password=
hostName=
subscriptionKey=
portalEnabled=
proxyHostName=
proxyPort=
proxyUserName=
proxyPassword=
Values are not required for every property. The filling in or leaving blank a property depends on the task you intend to perform. Possible
tasks are registering a new system, reregistering a system, and establishing a proxy. See sconadm(1M) for examples.
The properties defined for a registration template are as follows:
userName Corresponds to Sun Online Account user name.
password Corresponds to Sun Online Account password.
hostName Hostname of the machine to be registered (defaults to Unix host name, if not provided).
subscriptionKey Enable access to all updates by providing your Sun Subscription Key for entitlement.
Note -
The Sun Subscription Key is now known as the Sun Service Plan Number. However, the name of this field (subscription-
Key) remains unchanged.
portalEnabled If true, enable local client to be managed at the Sun-hosted Update Connection Service. If false, disable local client
to be managed at the Sun-hosted Update Connection Service.
proxyHostName Your HTTP web proxy host name.
proxyPort Your HTTP web proxy port number.
proxyUserName Your HTTP web proxy user name.
proxyPassword Your HTTP web proxy password.
EXAMPLES
Example 1 Sample Registration Profile
Below are the contents of a sample registration profile. Such a profile might be used to specify a proxy server with authentication.
userName=
password=
hostName=
subscriptionKey=
portalEnabled=
proxyHostName=webcache.mycompany.com
proxyPort=8080
proxyUserName=myCompanyProxyUserName
proxyPassword=myCompanyProxyPassword
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWbrg |
+-----------------------------+-----------------------------+
|Interface Stability |Stable |
+-----------------------------+-----------------------------+
SEE ALSO
sconadm(1M), attributes(5)
SunOS 5.11 27 Feb 2006 registration_profile(4)