9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
2. UNIX for Beginners Questions & Answers
Hi,
I was trying to run a program that calls 8 processors (with max. RAM of 2 GB per processor). I want to run this program on my cluster that runs SGE. The cluster has 2 nodes, and each node has 62 cores, and 248GB/node. Currently, I use the scripts below, but the program (softx below) crashes... (0 Replies)
Discussion started by: pc2001
0 Replies
3. Solaris
Need to find a way to import an LP printers.conf file to CUPS. I have some new Solaris 11.1 boxes that need to have 300 printers added. (0 Replies)
Discussion started by: os2mac
0 Replies
4. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
5. High Performance Computing
Does anybody know of a good alternative to Sun Grid Engine? It seems that Oracle is now charging for this software. I am running a HPC cluster that has Solaris 10 machines and I am adding some nodes that will be running Ubuntu 10.04, eventually the Solaris machines will be migrating to Ubuntu. (0 Replies)
Discussion started by: ccj4467
0 Replies
6. Solaris
Hi all,
First off, sorry for a long post but I think I have no other option if I need to explain properly what I need help for.
I need some advise on how best to check for "faulty" or "stalled/jammed' print queues. At the moment, I have three (3) application servers which also acts as print... (0 Replies)
Discussion started by: newbie_01
0 Replies
7. Solaris
Hi,
What is the equivelent command for ioscan from HP in SUN, i.e I need to display all hardware devies with path/driver/stats etc.
regards,
Ahmed (2 Replies)
Discussion started by: Ahmad
2 Replies
8. UNIX for Advanced & Expert Users
Does anyone know of a command or list of commands that shows the same amount of detail as prtdiag -v for redhat linux? (2 Replies)
Discussion started by: brshell
2 Replies
9. Shell Programming and Scripting
Hi, I use getopts in this way:while getopts ":d:f:crapv" Option
do
case $Option in
d ) BACKUP_DIR="$OPTARG";echo $BACKUP_DIR;; #echo fot test
c ) compress_file;;
r ) remove_file;;
a ) remove_file && compress_file;;... (2 Replies)
Discussion started by: mbarberis
2 Replies
HOSTNAMEUTILS(1) Sun Grid Engine User Commands HOSTNAMEUTILS(1)
NAME
sge_hostnameutils.1 - SGE Host name utilities
gethostname -
get local hostname.
gethostbyname -
get local host information for specified hostname.
gethostbyaddr -
get hostname via IP address.
getservbyname -
get configured port number of service
SYNTAX
gethostname [-help|-name|-aname|-all]
gethostbyname [-help|-name|-aname|-all] <name>
gethostbyaddr [-help|-name|-aname|-all] <ip>
getservbyname [-help|-number] <service>
DESCRIPTION
gethostname and gethostbyname are used to get the local resolved host name. gethostbyaddr is used to get the hostname of a specified IP
address (dotted decimal notation). getservbyname can be used to get the configured port number of a service (e.g. from /etc/services).
The hostname utils are primarily used by the Sun Grid Engine installation scripts. gethostname , gethostbyname and gethostbyaddr called
without any option will print out the hostname, all specified aliases, and the IP address of the locally resolved hostname. Calling get-
servbyname without any option will print out the full service entry.
OPTIONS
-help
Prints a list of all options.
-name
This option only reports the primary name of the host.
-aname
If this option is set, the Sun Grid Engine host alias file is used for host name resolving. It is necessary to set the environment variable
SGE_ROOT and, if more than one cell is defined, also SGE_CELL.
This option will print out the Sun Grid Engine host name.
-all
By using the -all option all available host information will be printed. This information includes the host name, the Sun Grid Engine host
name, all host aliases, and the IP address of the host.
-number
This option will print out the port number of the specified service name.
<name>
The host name for which the information is requested.
<ip>
The IP address (dotted decimal notation) for which the information is requested.
<service>
The service name for which the information is requested (e.g. ftp, sge_qmaster or sge_execd).
EXAMPLES
The following example shows how to get the port number of the FTP service:
>getservbyname -number ftp
21
The next example shows the output of gethostname -all when the host alias file contains this line:
gridmaster extern_name extern_name.mydomain
The local host resolving must also provide the alias name "gridmaster". Each Sun Grid Engine host that wants to use the cluster must be
able to resolve the host name "gridmaster".
To setup an alias name, edit your /etc/hosts file or modify your NIS setup to provide the alias for the NIS clients.
The host alias file must be readable from each host (use e.g. NFS shared file location).
>gethostname -all
Hostname: extern_name.mydomain
SGE name: gridmaster
Aliases: loghost gridmaster
Host Address(es): 192.168.143.99
ENVIRONMENTAL VARIABLES
SGE_ROOT Specifies the location of the Sun Grid Engine standard configuration files.
SGE_CELL If set, specifies the default Sun Grid Engine cell.
SEE ALSO
sge_intro(1), host_aliases(5),
COPYRIGHT
See sge_intro(1) for a full statement of rights and permissions.
SGE 6.2u5 $Date$ HOSTNAMEUTILS(1)