02-05-2004
Heedunk,
This sounds an awful lot like something a teacher would assign. Read the rules about homework.
With that being said, you can search the forum and see what comes up. There's no rule against that.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
i have this assignment.. and i mad this script but there is something wrong with it.. if anyone can tell me.. watz going on... i would appreciate it.. tHnX in advance..
count=1
val=$2
op=$1
ans=0
if
then
if
then
while
do
... (7 Replies)
Discussion started by: dezithug
7 Replies
2. Shell Programming and Scripting
Hi all,
Can somebody answer the following query
Thanks,
Srinivas
A shell program that takes one or any number of file directory names as input; sorts the directories given as parameters jointly in the ascending or decending order of choice For EX : dips abc etc desc will sort the files... (2 Replies)
Discussion started by: psrinivas
2 Replies
3. Shell Programming and Scripting
Hello There,
I am trying to write this SIMPLE script in Bourne Shell but I keep on getting a blank response. Can you see what I am doing wrong? I am simply trying to take the day of the week from our system and when the teachers sign on I want them to see the message of the day, when they exe... (2 Replies)
Discussion started by: catbad
2 Replies
4. UNIX for Dummies Questions & Answers
Hello,
I'm throwing this out there as a novice to the Unix world...I've
been working on a project that requires me to ouput (using the echo command) a list of names in a single column format, but the problem is the input is in row format followed by a blank space...If anyone could give me a... (2 Replies)
Discussion started by: dmhonor914
2 Replies
5. Shell Programming and Scripting
Dear Bourne Shell Expert,
I am trying to change the current working directory from within a Bourne Shell script. Simply enough i thought !
As I am sure you are well aware, Inside the script i echo `pwd` and it seems ok, but the shell spawns another shell to execute this and as such, when my... (10 Replies)
Discussion started by: fawqati
10 Replies
6. Shell Programming and Scripting
Hey guys,
I am trying to do a bourne script to look for c files in the current directory. I had it working where it finds the files and asks you to delete them or not, which works, but if there i no files, then it comes up with errors, which iam trying to get rid of. So I thought I would do a if... (2 Replies)
Discussion started by: Pits
2 Replies
7. Shell Programming and Scripting
Hi Guys,
This is my first script, even though i have made corrections in others scripts., this is the first one I am writing from the scratch..
#! /bin/sh
prev_Ixref=245
curr_Ixref=355
while ( ($prev_Ixref -lt 245)&&($prev_Ixref -gt 355))
do
echo "curr_Ixref is $curr_Ixref"
echo... (15 Replies)
Discussion started by: mac4rfree
15 Replies
8. Shell Programming and Scripting
Hey guys not sure why but when i execute the script i get the correct result but then it says command not found not sure why can anyone see anything wrong with my code below?
I just want to print how much quota i have used in my home directory
#!bin/sh
`quota -v | grep ^/home | awk... (2 Replies)
Discussion started by: musicmancanora4
2 Replies
9. Shell Programming and Scripting
Attempting to write a script to eventually notify me via email for when there is packetloss across the backbone. I am looking for values greater than 0% in the mtr field.
#!/bin/sh
target=www.google.com
date +"%D"_"%T" >> /home/rich/mtr.log
echo "----------------------------------------" >>... (1 Reply)
Discussion started by: closedown
1 Replies
10. UNIX for Dummies Questions & Answers
I've got an NTFS file system mounted on my Linux box, which means I can have multi-word directory names. I want to recurse through the directory structure copying stuff from /A to /B when it does not already exist on /B. Here is the chunk of code, and the output of a set -x run on that chunk of... (8 Replies)
Discussion started by: esmith92000
8 Replies
PMAP(1) User Commands PMAP(1)
NAME
pmap - report memory map of a process
SYNOPSIS
pmap [options] pid [...]
DESCRIPTION
The pmap command reports the memory map of a process or processes.
OPTIONS
-x, --extended
Show the extended format.
-d, --device
Show the device format.
-q, --quiet
Do not display some header or footer lines.
-A, --range low,high
Limit results to the given range to low and high address range. Notice that the low and high arguments are single string separated
with comma.
-X Show even more details than the -x option. WARNING: format changes according to /proc/PID/smaps
-XX Show everything the kernel provides
-p, --show-path
Show full path to files in the mapping column
-c, --read-rc
Read the default configuration
-C, --read-rc-from file
Read the configuration from file
-n, --create-rc
Create new default configuration
-N, --create-rc-to file
Create new configuration to file
-h, --help
Display help text and exit.
-V, --version
Display version information and exit.
EXIT STATUS
0 Success.
1 Failure.
42 Did not find all processes asked for.
SEE ALSO
ps(1), pgrep(1)
STANDARDS
No standards apply, but pmap looks an awful lot like a SunOS command.
REPORTING BUGS
Please send bug reports to <procps@freelists.org>
procps-ng September 2012 PMAP(1)