10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
In bash, you can do something like this:
#!/bin/bash
echo -n "What is your name? " > /dev/tty
read thename < /dev/tty
How can I do the same in python?
I have a python script that has the following content:
#!/usr/bin/python2.7
import getpass
import sys
import telnetlib
import... (2 Replies)
Discussion started by: SkySmart
2 Replies
2. Shell Programming and Scripting
Hi, Have a need to run the below command as a "karuser" from a java class which will is running as "root" user. When we are trying to run the below command from java code getting the below error.
Command:
sudo -u karuser -s /bin/bash /bank/karunix/bin/build_cycles.sh
Error:
sudo: sorry,... (8 Replies)
Discussion started by: Satyak
8 Replies
3. Shell Programming and Scripting
Hi All,
I running a unix command using sudo option inside shell script. Its working well. But in crontab the same command is not working and its throwing
"sudo: sorry, you must have a tty to run sudo". I do not have root permission to add or change settings for my userid. I can not even ask... (9 Replies)
Discussion started by: Apple1221
9 Replies
4. UNIX for Advanced & Expert Users
I am not sure if I am using the correct terminology but somehow my tty keeps changing on me. The man pages are confusing to me on what exactly the tty is. This is what I see when I run the tty command. Could anyone explain why my tty keeps changing?
~ $ tty
/dev/pts/1
~ $ tty
/dev/pts/0 (6 Replies)
Discussion started by: cokedude
6 Replies
5. Linux
It's happened multiple times and I can't figure out why it's happening or how to undo it, but hitting CTRL-S seems to disable the given TTY on 'nixes of various flavors. Killing the pid doesn't bring the tty back, I end up having to use other tty's until I reboot.
Anyone got some information for... (2 Replies)
Discussion started by: thmnetwork
2 Replies
6. UNIX for Dummies Questions & Answers
When I do a who command I get the following:
mohit :0 2009-04-07 14:07
mohit pts/0 2009-04-07 17:25 (:0.0)
mohit pts/1 2009-04-09 12:07 (:0.0)
mohit pts/2 2009-04-16 11:38 (:0.0)
mohit pts/3 2009-04-16 16:09 (:0.0)
mohit pts/4 ... (1 Reply)
Discussion started by: mojoman
1 Replies
7. Shell Programming and Scripting
Hey folks! I'm trying to run a tcpdump command that monitors for possible malicious traffic. I want to be able to run this on any of several remote boxes that I monitor which all have different capture interfaces. I've gotten the script to the point where it logs into the box and attempts to run... (8 Replies)
Discussion started by: JASI
8 Replies
8. UNIX for Dummies Questions & Answers
hi iam very new to linux can anyone tell me about pts and tty
acctually today morning i logged into my pc at 9:51
when i have given #who
it has given
sam tty7 9:51
sam pts/1 10:11
so what does it mean (1 Reply)
Discussion started by: praneel2k
1 Replies
9. AIX
Hi All
can anyone tell me what is the meaning of tty,or give me an example of this? (1 Reply)
Discussion started by: magasem
1 Replies
10. Programming
Hi gurus,
Need help to code some tools dealing with all the tty thingies, raw mode etc ....
Can you juss point me to some cool links related to tty programming, i've tried google but found none so far :confused:
Thanks all. (2 Replies)
Discussion started by: andryk
2 Replies
pbs_resources_sp2(7B) PBS pbs_resources_sp2(7B)
NAME
pbs_resources_sp2 - pbs resources on IBM SP-2
DESCRIPTION
This page summarizes the resources supported by PBS for the IBM SP-2. These resources are specified by including them in the -l option
argument on the qsub or qalter command or in the PBS job script.
RESOURCES
nice The nice value under which the job is to be run. Units: unitary.
walltime
Maximum amount of real time during which the job can be in the running state. Units: time.
arch Specifies the administrator defined system architecture requried. This defaults to whatever the PBS_MACH string is set to in
"local.mk". Units: string.
host Name of host on which job should be run. This resource is provided for use by the site's scheduling policy. The allowable values
and effect on job placement is site dependent. Units: string.
nodes Number and/or type of nodes to be reserved for exclusive use by the job. The value is one or more node_specs joined with the '+'
character, "node_spec[+node_spec...]. Each node_spec is an number of nodes required of the type declared in the node_spec and a
name or one or more properity or properities desired for the nodes. The number, the name, and each properity in the node_spec are
separated by a colon ':'. If no number is specified, one(1) is assumed. Units: string.
The name of a node is its hostname. The properities of nodes are:
. ppn=# specifying the number of processors per node requested. Defaults to 1.
. arbitrary string assigned by the system administrator, please check with your administrator as to the node names and properities
available to you.
Examples:
. To ask for 12 nodes of any type: -l nodes=12
. To ask for 2 "server" nodes and 14 other nodes (a total of 16): -l nodes=2:server+14
The above consist of two node_specs "2:server" and "14".
. To ask for (a) 1 node that is a "server" and has a "hippi" interface, (b) 10 nodes that are not servers, and (c) 3 nodes that have
a large amount of memory an have hippi:
-l nodes=server:hippi+10:noserver+3:bigmem:hippi
. To ask for three nodes by name:
-l nodes=b2005+b1803+b1813
. To ask for 2 processors on each of four nodes:
-l nodes=4:ppn=2
. To ask for 4 processors on one node:
-l nodes=1:ppn=4
. To ask for 2 processors on each of two blue nodes and three processors on one red node:
-l nodes=2:blue:ppn=2+red:ppn=3
host Allows a user to specify the desired execution location. This resource is provided for use by the site's scheduling policy. The
allowable values and effect on job placement is site dependent. Units: string.
other Allows a user to specify site specific information. This resource is provided for use by the site's scheduling policy. The allow-
able values and effect on job placement is site dependent. Units: string.
software
Allows a user to specify software required by the job. This is useful if certain software packages are only available on certain
systems in the site. This resource is provided for use by the site's scheduling policy. The allowable values and effect on job
placement is site dependent. Units: string.
EXAMPLES
qsub -l nodes=15,walltime=2:00:00 script
or in a qsub script as a directive:
#PBS -l nodes=15,walltime=2:00:00
RESOURCE UNITS
The resource values take the following units:
time specifies a maximum time period the resource can be used. Time is expressed in seconds as an integer, or in the form:
[[hours:]minutes:]seconds[.milliseconds]
unitary The maximum amount of a resource which is expressed as a simple integer.
SEE ALSO
the PBS ERS, qsub(1B), qalter(1B), pbs_submit(3B), pbs_alterjob(3B), pbs_statjob(3b) pbs_resources_aix4(7B), pbs_resources_irix5(7B)
pbs_resources_sunos4(7B), pbs_resources_unicos8(7B)
Local pbs_resources_sp2(7B)