Sponsored Content
Full Discussion: Shell Script Programming
Top Forums Shell Programming and Scripting Shell Script Programming Post 302086908 by BOFH on Monday 28th of August 2006 02:21:11 PM
Old 08-28-2006
You need to provide more information in order to get a reasonable answer. We can try to figure out what you're asking by understanding what sorts of questions get asked in classes/books and giving you that answer but it might not help you if you're looking for a different result.

Carl
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Calling PL/SQL Script in Shell Programming

Hi all, In a shell script I need to pass two parameters to a pl/sql script and get the ouput of the pl/sql script and use it in shell script. For example Shell script : test.sh PL/SQL script : get_id.sql parameter1 parameter2 Actually get_id.sql has a select statement something... (1 Reply)
Discussion started by: lijju.mathew
1 Replies

2. Shell Programming and Scripting

Need help : Shell Script Programming

I have to complete my assignment and i need help... These are two simple shell script programs : 1.) Write a shell script to display files in the current directory in the following format : FileName Size Date Protection Owner _______ ____ ___ ________ _____ 2.) Write a... (1 Reply)
Discussion started by: harshthegreat89
1 Replies

3. UNIX for Dummies Questions & Answers

shell script programming issues

I'm having trouble running this script. I'm new to Unix so be kind please. #!/bin/sh # Test to make sure only a single parameter is passed from the # command line. if then echo "Usage: AC.sh <directory>" exit fi # Is the parameter a directory test if then echo... (3 Replies)
Discussion started by: FSUdude08
3 Replies

4. Shell Programming and Scripting

Shell script programming help

I'm new to this and I need help with writing a script. The following assignment is as follows... Create a shell script named Project3-8 located in a directory supported by the File System Hierarchy Standard. The script needs to perform the following pseudocode in the order shown: -Display... (1 Reply)
Discussion started by: sdpinoy
1 Replies

5. Shell Programming and Scripting

Arithmetic Problem with shell script programming.

Hello everybody, I decided to take a Unix Introduction class and have never had experience with programming. Everything was fine until recently when the Prof. started shell scripting and he wants us to make a small script to add unlimited numbers from arguments and from standard input. I... (1 Reply)
Discussion started by: Florinel76
1 Replies

6. Homework & Coursework Questions

Arithmetic Problem with shell script programming.

Hello everybody, I decided to take a Unix Introduction class and have never had experience with programming. Everything was fine until recently when the Prof. started shell scripting and he wants us to make a small script to add unlimited numbers from arguments and from standard input. I... (8 Replies)
Discussion started by: Florinel76
8 Replies

7. Shell Programming and Scripting

How to return programming to calling shell script?

Hi, I need to edit a shell script which is calling another shell script. At the moment the program returns to the command prompt after executing each called script. I need to change it to make it return to the calling script so that the user is able to make another choice to execute the next... (11 Replies)
Discussion started by: PTL
11 Replies

8. Shell Programming and Scripting

Convert my shell script to C programming HELP!!

I had try to create a basic shell script. So now im trying to convert in to C-programming language can some one guide/help me out with it?(BTW IM USING A LINUX/UNIX/ORACLE SYSTEM) CODE BELOW !/bin/bash for i in `ls -1 /cslab/home/JAZEL/` do cp -uv $i /cslab/home/JAZEL/cs295/$i.`date... (2 Replies)
Discussion started by: Nygenesis
2 Replies

9. UNIX for Dummies Questions & Answers

Shell script to read lines in a text file and filter user data Shell Programming and Scripting

sxsaaas (3 Replies)
Discussion started by: VikrantD
3 Replies

10. UNIX for Beginners Questions & Answers

How to find C programming functions using shell script?

I want to find c function definition with pattern with shell script by checking condition for each line: data_type functionname(param_list){ .... } I knew cscope or ctag is usable for this task, but if there any ways to do without using them. I am thinking of checking line condition... (3 Replies)
Discussion started by: cmdcmd
3 Replies
class_admin(8)						      System Manager's Manual						    class_admin(8)

NAME
class_admin - Administer class scheduling and the database. SYNOPSIS
/usr/sbin/class_admin [subcommand] DESCRIPTION
The class_admin command is used to configure and control the class scheduler and to maintain its database /etc/class. The class_admin command can be run interactively or non-interactively. Non-interactive mode is useful when you would like to execute a single class_admin subcommand without user interaction. This allows class_admin to be run from within a script, which makes it easy to enable class scheduling at system startup through use of an init(8) script. To run class_admin non-interactively, specify a single class_admin subcommand as an argument when invoking class_admin. Interactive mode is useful when you would like to execute several class_admin subcommands. To run class_admin interactively, invoke class_admin without specifying a subcommand argument. Should the class scheduler database not exist, class_admin will automatically create one when it starts up. If the command is invoked non- interactively, a default database is created (using the following interactive defaults). The interactive process will require you to answer three questions: Shall processes that have not been explicitly assigned to a defined class be assigned to a "default" class? Enter (y/n) [n]: To be class scheduled, a process must be assigned to a class. If you answer <y> to this prompt, a special class called the "default" class will be created, and any process that has not been explicitly assigned to one of the defined classes will be assigned to this class. If you answer <n> to this prompt, then only those processes which have been explicitly assigned to a defined class will be class scheduled. Enforce class scheduling when the CPU is otherwise idle? (y/n) [n]: The administrator has the option of allowing classes to exceed their CPU percentage when the system is otherwise idle if yes is answered. Otherwise, classes are held to their allotted percentage even if the CPU has no other work. How often do you want the system to reset class usage? Enter number of seconds (2): Use a small number (several seconds) if there are interactive jobs subject to class scheduling to give them a quick response time. If only batch jobs are class scheduled, response time is not an issue and larger values may be used. If class scheduling is enabled, changes made take effect immediately. Subcommands Add a group or user to an existing class. If the group or user exists in another class, you will be asked if you want to move it or not. More than one group or user may be specified. Syntax: add <class name> <type> <id ... ...> <type> = 'gid' | 'uid' | 'session' | 'pgrp' | 'pid' Change the CPU percentage allotted to a class. The system will not allow the total of all classes to exceed 100%. Syntax: change <class name> <cpu %> Create a new class. The name must be unique. The newly created class will be empty. Use the add command to populate the class. Syntax: create <class name> <cpu %> Set up the basic class scheduling parameters. You will be prompted for each parameter. Syntax: configure Remove a group or user from an existing class. More than one group or user may be specified. Syntax: delete <class name> <type> <id ... ...> <type> = 'gid' | 'uid' | 'session' | 'pgrp' | 'pid' Destroy an existing class. If the class is not empty, you will be asked if it's OK to destroy it anyway. Syntax: destroy <class name> Turn off class scheduling for the system. Note that the kernel will terminate the class scheduler dae- mon. Syntax: disable Turn on class scheduling for the system. A daemon will be started that periodically examines class CPU usage and adjusts access of a class to the CPU depending on its percentage. Syntax: enable Return to the command shell. If any permanent changes were made to the database, You will be asked to save or dis- card them. (Same as `quit'). Syntax: exit On-line help. If a subcommand is specified, detailed information pertaining to that subcommand is displayed. Other- wise, a list of all subcommands and their arguments is displayed. Syntax: help [<subcommand>] Return to the command shell. If any permanent changes were made to the database, You will be asked to save or discard them. (Same as `exit'). Syntax: quit Change the name of an existing class. Syntax: rename <old name> <new name> Write permanent database changes to the disk and continue. Syntax: save List the configured classes, the CPU percentage allocated to each class, and members assigned to it. If no class name is specified, all classes will be shown. Syntax: show [<class name>] List the current CPU utilization of a class. If no class name is specified, all classes will be shown. Syntax: stats [<class name>] FILES
SEE ALSO
Commands: runclass(1), class_scheduling(4) class_admin(8)
All times are GMT -4. The time now is 03:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy