9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
i want use this Comand for my psql request
sh ssh -o StrictHostKeyChecking=no rootatemailaddress.de sudo psql -U postgres -c "select pg_terminate_backend(pid) from pg_stat_activity where datnam=\'$DB\';"'"
but the shell lost the inverted comma for datnam=\'$DB\'. The request deliver... (2 Replies)
Discussion started by: peterpane007
2 Replies
2. Programming
Hi there,
im just having a hard time understanding why this code does not print anything that is suppose to print:
score = raw_input ('what is your score? \n')
try:
if 1.0 == float(score) >= 0.9:
print "A"
elif 0.9 > float(score) >= 0.8:
... (1 Reply)
Discussion started by: la2015
1 Replies
3. Shell Programming and Scripting
Hi,
I have a bash script to run many system commands on CentOS machine, but I am puzzled by some commands had no effect on parent environment.
For example, I want to refresh the desktop xdg menu when some processes added or deleted items from desktop xdg menu. If I run "killall gnome-panel"... (4 Replies)
Discussion started by: hce
4 Replies
4. Shell Programming and Scripting
Hi,
I want to do SSH on many different machines and then run some commands on them. A binary application randomly generates IP addresses and my script will take care of doing SSH.
$ ./IPGen.exe | ./myScript.sh
my script looks like this:
while read line; do
result1=$(ssh $line... (2 Replies)
Discussion started by: siavash
2 Replies
5. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I have just gotten into writing bash scripts for a class, part of the assignment is to read and be able to tell... (4 Replies)
Discussion started by: Byrang
4 Replies
6. Post Here to Contact Site Administrators and Moderators
Hi,
yesterday I have got reply in my thread
how to redirect shell pipe to 2 pipes.
I would read that answer once again,
as my re.re. is also lost
Jack (6 Replies)
Discussion started by: jack2
6 Replies
7. UNIX for Advanced & Expert Users
Hi,
I was trying to call "script <an ip add>" command from .profile file to log everything whenever anyone logs in to this user. I did the following at the end of .profile. 1) Extracted the IP address who logged in 2) Called script < ip add> . The problem I am facing is all, aliases etc. written... (3 Replies)
Discussion started by: amicon007
3 Replies
8. UNIX for Dummies Questions & Answers
I am really stuck on something I am sure you all will find simple.
I am VERY new to shell scripting and I am trying to figure out how to do a or statement below. So if it = 11 or 31 then...
if ; then
Please keep in mind I do not know much on shell scripting and thank you in advance as... (8 Replies)
Discussion started by: LRoberts
8 Replies
9. Filesystems, Disks and Memory
First time so excuse my ignorance please.
I may not be accurately describing the issue.
I have inherited a small lab mostly SUN V120s.
We lost power and are trying to recover.
Nope no backups...
The primary issue I have is 1 box is an Oracle Server.
It has 2 36Gb harddrives.
I am able to... (3 Replies)
Discussion started by: murphsr
3 Replies
lmfsetup(8) System Manager's Manual lmfsetup(8)
NAME
lmfsetup - License Management Facility (LMF) registration script
SYNOPSIS
/usr/sbin/lmfsetup [template]
DESCRIPTION
You use the lmfsetup script to register data supplied by a Product Authorization Key (PAK). The lmfsetup script prompts you for the data
associated with each field on a PAK. Once you enter all the data, LMF makes sure you have supplied entries for all mandatory fields and
that the value in the Checksum field validates the license data. If all data is correct, LMF registers the PAK in the License Database. If
any data is incorrect, LMF displays the appropriate error message and gives you an opportunity to reenter the data.
The template argument allows you to register license data from templates in /usr/var/adm/lmf. The templates stored in this directory are
created by some software products during their installation process. When you use a template, the script prompts you to supply data for any
empty fields in the template. If the lmfsetup script cannot find the specified template in /usr/var/adm/lmf, it searches your current work-
ing directory.
Use the lmfsetup script when you want to register a PAK without using an editor. Normally, you should use the lmf register command. The
lmf register command displays a template, which includes the fields on the PAK, and invokes an editor so that you can add the license data
to the appropriate fields. The lmf register command allows you to correct errors without having to reenter all the data.
SEE ALSO
Command: lmf(8)
Software License Management
lmfsetup(8)