Sponsored Content
Full Discussion: Unix fdisk -l Automation
Top Forums Shell Programming and Scripting Unix fdisk -l Automation Post 302936169 by bkilaru on Monday 23rd of February 2015 11:33:02 AM
Old 02-23-2015
Power Unix fdisk -l Automation

Hello Folks - Need help really ASAP.

Iam trying to run this Shell command to get all the lists of partitions and disks from across all the servers.

Code:
#!/bin/ksh
_servers=""
_out="/tmp/output.$$"
_ssh=/usr/bin/ssh

>$_out
for s in $_servers
do
        $_ssh $s fdisk -l >> $_out
done

Moderator's Comments:
Mod Comment Please do not hijack an existing thread but start a new thread
and post you new thread in the proper forum

Moved post to new thread

Last edited by Scrutinizer; 02-23-2015 at 12:48 PM.. Reason: code tags
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

I need fdisk that works with dos and unix

I need an fdisk that will fdisk both parts of my drive. One with dos and the other with linux. Have have messed up my drive and can't fdisk dos or linux. Can you help? thank you (1 Reply)
Discussion started by: gparsons70
1 Replies

2. UNIX for Advanced & Expert Users

automation of Informatica jobs using Unix

1.How will you do automation of Informatica jobs using Unix ? 2. How u run workflow from Unix? :) (2 Replies)
Discussion started by: kamesh83
2 Replies

3. Shell Programming and Scripting

Simple Unix Automation

Hi, i'm a newbie with unix and shell scripting. I'm just trying to do a script to simply automate a unix task. This are the steps on what i want to just run on a simple shell script 1. go to a specific path (cd /folder1/folder2/) 2. edit and input a number on a file (file_id) then save exit... (6 Replies)
Discussion started by: soultransit
6 Replies

4. Shell Programming and Scripting

UNIX automation

Hello People, I have an outstanding issue with me I have 5 files at location /usr/abc called 1.DE 1.TXT 2.DE 2.TXT 3.DE 3.TXT 4.DE 4.TXT 5.Fe.ok My work involves few manual process like transfer 1.DE 1.TXT and 5.Fe.ok to /usr/dob location and run one script(for example -... (42 Replies)
Discussion started by: j_panky
42 Replies

5. Shell Programming and Scripting

creating an automation process in unix .

hi i need shell script in ksh for the automation process in informtica. The automation process is like this . i have a folder in unix . when this folder gets updated (like if a file or files is/are added to the folder) an event in informatica is triggered and after the process is done in... (2 Replies)
Discussion started by: kumar8887
2 Replies

6. BSD

OpenBSD fdisk - Linux fdisk compatibility ?

Hello, MBR partition table made by linux fdisk looks certainly not correct when printed by openbsd fdisk: Partition table created on linux (centos 6.3): # fdisk -l /dev/sdc Disk /dev/sdc: 10.7 GB, 10737418240 bytes 255 heads, 63 sectors/track, 1305 cylinders Units = cylinders of 16065 *... (2 Replies)
Discussion started by: vilius
2 Replies

7. Homework & Coursework Questions

Mail Automation in UNIX

Hi Sir, I need unix code which will read data present in .xls file and should send an automated mails .when i place the .XLS file in a specific folder and run ***.sh from unix box Attached Excel file contains Subject , To , CC , Body (Paragraph 1) , Body (Paragraph 2) , Signature When i... (2 Replies)
Discussion started by: chaitanyaS
2 Replies

8. Post Here to Contact Site Administrators and Moderators

UNIX automation

I am using netteza server and i have a list of table names. I need to fetch all the data from these tables and need to create seperate zip files and store in a folder in the server. How can we automate this process. (1 Reply)
Discussion started by: nikhilthms97
1 Replies

9. UNIX for Beginners Questions & Answers

Automation using bots in Linux/UNIX ?

Hi folks, has any one attempted using bots for performing tasks in unix?please share if you faced any challenges thanks (1 Reply)
Discussion started by: tommy812
1 Replies
pthread_setschedprio(3T)												  pthread_setschedprio(3T)

NAME
pthread_setschedprio() - sets scheduling priority of a thread SYNOPSIS
PARAMETERS
thread The thread whose scheduling priority is to be set. prio The new priority for the thread. DESCRIPTION
The function sets the scheduling priority of thread to the value prio. If the function fails, the scheduling priority of the target thread is not changed. RETURN VALUE
Upon successful completion, returns zero. Otherwise, an error number is returned to indicate the error (the variable is not set). ERRORS
If any of the following occur, the function returns the corresponding error number: The value of prio is invalid for the scheduling policy of the specified thread. The implementation does not allow the application to modify the priority to the value specified. No thread could be found corresponding to thread. AUTHOR
is derived from the IEEE Std 1003.1-2001. SEE ALSO
rtsched(2), pthread_attr_setschedparam(3T), pthread_attr_setschedpolicy(3T), pthread_attr_getschedparam(3T), pthread_attr_getschedpol- icy(3T), pthread_setschedparam(3T), pthread_getschedparam(3T). STANDARDS CONFORMANCE
Pthread Library pthread_setschedprio(3T)
All times are GMT -4. The time now is 06:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy