Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Need help with a simple command Post 38852 by liangyuanen on Tuesday 29th of July 2003 07:22:58 AM
Old 07-29-2003
man -k

use "man -k <subject>" command
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

probably simple SED-command ...

Hello, I've got a problem with SED. It's my intention to shorten a file path (removing the file name) with the help of SED. Something like: tmp\folder1\folder2\blah.txt has to be transformed to tmp\folder1\folder2\. I suppose, it's on the tip of my tongue. Perhaps it's close to: sed... (2 Replies)
Discussion started by: sysadv
2 Replies

2. UNIX for Dummies Questions & Answers

Simple sed command

Hi, I have the following file: --# --#line1 --#line2 --#line3 --# --#line4 --#line5 and I want to use something like: sed 's/--#/newline/g' file > newfile to substitute the lines containing only '--#', but when I try, it replaces every instance of '--#' with 'newline' and I... (7 Replies)
Discussion started by: Dave724001
7 Replies

3. Shell Programming and Scripting

Help with a simple loop command!

Hi! I'm having problems to get this simple script done: I need to insert 50 lines with the value from the variable dtm=`date +"%d"` into a new file, how do I do that using the "for" or "while" loop commands ? Is there any other command I can use to do that ? I'm new to shell scripting, as you can... (8 Replies)
Discussion started by: dfs
8 Replies

4. Shell Programming and Scripting

Simple AWK command?

I am not that good with AWK. Is there a simple awk command I could use to get the word "this" from the following text besides using "awk -F ":" '{print $2} | awk -F " " '{print $1}"? :this is:that is: (6 Replies)
Discussion started by: 2dumb
6 Replies

5. Shell Programming and Scripting

alias a simple ls -l command

how do I alias the following command: ls -l |egrep 'drw|dr-|d--|d-w' The alias command needs single quotes and so does the above command, so this does not work: alias LSDIR 'ls -l |egrep 'drw|dr-|d--|d-w' ' My problem is how do I get a listing of only directories? Solaris 8 SUN Ultra 10... (4 Replies)
Discussion started by: ajp7701
4 Replies

6. UNIX for Dummies Questions & Answers

simple if command

#! /bin/sh envname=$1 if ; then echo usage : `basename $0` envname exit -1 fi can someone explain what exactly this does (1 Reply)
Discussion started by: bn_unx
1 Replies

7. Shell Programming and Scripting

awk command for simple join command but based on 2 columns

input1 a_a a/a 10 100 a1 a_a 20 200 b1 b_b 30 300 input2 a_a a/a xxx yyy a1 a1 lll ppp b1 b_b kkk ooo output a_a a/a 10 100 xxx yyy (2 Replies)
Discussion started by: ruby_sgp
2 Replies

8. Shell Programming and Scripting

Help with simple grep command

I am currently having a problem with displaying multiple occurences of a line using grep/sed combination. Let's say that I do grep "$anything" $file. When I do this it only displays a single line, but if I do grep -c "$anything" $file it says that there are 3 occurences of $anything, but how can... (15 Replies)
Discussion started by: puttster
15 Replies

9. Shell Programming and Scripting

please describe me some simple command

Hi everyone I'm new here and I don't know some command of unix, please help by describe me how it work, I study unix command by myself and can't search exactly means so...Thanks :D sqlplus -s /nolog @${SQLFILE} ${file_type} >> ${OUTPUT_FILE} date "+%Y%m%d%H%M%S" $/usr/bin/echo "INFO : $1"... (2 Replies)
Discussion started by: zound617
2 Replies

10. Shell Programming and Scripting

A simple awk command

Hi there, given the file FIELD1 FIELD2 FIELD3 FIELD4 FIELD5 FIELD6 FIELD7 FIELD8 FIELD9 FIELD10 FIELD11 Why does not awk '$6 == "FIELD6" {$6=="GREEN"}1' file do the work and replace"FIELD6" by "GREEN"? And second question, what is the purpose of the "1" at the end of... (5 Replies)
Discussion started by: la2015
5 Replies
REG_HOSTER(3PVM)						  PVM Version 3.4						  REG_HOSTER(3PVM)

NAME
pvm_reg_hoster - Register task as PVM slave starter. SYNOPSIS
C #include <pvmsdpro.h> int cc = pvm_reg_hoster() Fortran Not Available DESCRIPTION
Registers the calling task as a PVM slave pvmd starter. When the master pvmd receives a DM_ADD message, instead of starting the new slave pvmd processes itself, it passes a message to the hoster, which does the dirty work and sends a message back to the pvmd. Note: This function isn't for beginners. If you don't grok what it does, you probably don't need it. For a more complete explanation of what's going on here, you should refer to the PVM source code and/or user guide section on implementation; this is just a man page. That said... When the master pvmd receives a DM_ADD message (request to add hosts to the virtual machine), it looks up the new host IP addresses, gets parameters from the host file if it was started with one, and sets default parameters. It then either attempts to start the processes (using rsh or rexec()) or, if a hoster has registered, sends it a SM_STHOST message. The format of the SM_STHOST message is: int nhosts // number of hosts { int tid // of host string options // from hostfile so= field string login // in form ``[username@]hostname.domain'' string command // to run on remote host } [nhosts] The hoster should attempt to run each command on each host and record the result. A command usually looks like: $PVM_ROOT/lib/pvmd -s -d8 -nhonk 1 80a9ca95:0f5a 4096 3 80a95c43:0000 and a reply from a slave pvmd like: ddpro<2312> arch<ALPHA> ip<80a95c43:0b3f> mtu<4096> When finished, the hoster should send a SM_STHOSTACK message back to the address of the sender (the master pvmd). The format of the reply message is: { int tid // of host, must match request string status // result line from slave or error code } [] // implied count The TIDs in the reply must match those in the request. They may be in a different order, however. The result string should contain the entire reply (a single line) from each new slave pvmd, or an error code if something went wrong. Legal error codes are the literal names of the pvm_errno codes, for example ``PvmCantStart''. The default PVM hoster can return PvmDSysErr or PvmCantStart, and the slave pvmd itself can return PvmDupHost. The hoster must use pvm_setmwid() to set the wait ID in the reply message to the same value as in the request. The wait ID in the request is obtained by calling pvm_getmwid(). The hoster task must use pvm_setopt(PvmResvTids, 1) to allow sending reserved messages. Messages should be packed using encoding Pvm- DataDefault to ensure they can be unpacked anywhere in the system. pvm_reg_hoster() returns PvmOk when successful. SEE ALSO
pvm_addhosts(3PVM), pvm_config(3PVM), pvm_setmwid(3PVM) 4 March, 1994 REG_HOSTER(3PVM)
All times are GMT -4. The time now is 07:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy