Search Results

Search: Posts Made By: pc2001
1,041
Posted By pc2001
Sun Grid Engine (SGE) scripts - processors?
Hi,

I was trying to run a program that calls 8 processors (with max. RAM of 2 GB per processor). I want to run this program on my cluster that runs SGE. The cluster has 2 nodes, and each node has...
Forum: Red Hat 07-01-2016
1,598
Posted By pc2001
Thanks!
Thanks!
Forum: Red Hat 06-30-2016
1,598
Posted By pc2001
Installing Oracle jre 8 on Linux
Hi,

I am a common user on a linux cluster that has openJDK installed. For a particular software, the vendor asks for Oracle version of java installed.

How can I install the oracle version from...
Forum: Red Hat 08-02-2015
1,906
Posted By pc2001
Command for load stats
Hi,

Is there a way that I can find the load usage stats on a cluster (Redhat 4.8)? I want to find out if my jobs are using too many resources. I am not a sys admin.

Also, apart from 'top',...
1,110
Posted By pc2001
Basic awk...newbie quetion
Hi,

I was trying to change the value of the 4th column (put '1' in the 4th column of each row). My awk command is:

awk -F, '{$3=1;}1' OFS= input.txt > ./test_out.txt

My input file is:
a 1 2...
1,216
Posted By pc2001
Too many files!
Hi,

I am trying to uncompress files in a set of nested directories (recursively). I give the following command:

find . -name '*.gz' -execdir gunzip '{}' ';'

1. It works when there are a...
Forum: Fedora 03-05-2015
6,586
Posted By pc2001
Its a centOS system, details are: ----- ...
Its a centOS system, details are:

-----
3.10.0-123.13.2.el7.x86_64 #1 SMP Thu Dec 18 02:09:51 CST 2014 x86_64 x86_64 x86_64 GNU/Linux
-----

% cat /etc/*-release
NAME="Scientific Linux"...
Forum: Fedora 03-05-2015
6,586
Posted By pc2001
Dsh command help!
Hi,

I am trying to run the following on our cluster:

/sw/bin/dsh -w node02 -e "/home/pc/thello.sh"

but I get an error:

dsh: no machine specified

I used to be able to run it a few...
11,123
Posted By pc2001
Looping over output of 'ls'
Hi,

I have some output from 'ls' command and I want to loop over the output in a bash script. What would be a good way to go about it?

For example, if the output of the ls command gives me...
9
1,961
Posted By pc2001
So, to get things straight: ...
So, to get things straight:

NR==FNR{A[$1,$2]; next}

- this reads file 2 and creates an array for each row in file 2

!(($1,$2) in A)

- after file 2 has been read, file 1 is read and output...
9
1,961
Posted By pc2001
Thanks Aia! It would be great if you could...
Thanks Aia!

It would be great if you could elaborate a bit on the structure and syntax of the code!
9
1,961
Posted By pc2001
Join?
Hi,

I am trying to exclude certain rows in File 1, based on File 2. i.e. in the example below, File 3 should be the output; i.e. the rows in File 2 are excluded from File 1. Any hints/suggestions...
1,453
Posted By pc2001
Thanks, that worked!
Thanks, that worked!
1,453
Posted By pc2001
Basic sed usage in shell script
Hi,

A basic sed question.

I have a set of files. In each file there is a number that I want replaced. For example, if I run sed I should get the following:

% cat test2.txt
#goofy//171.00...
4,157
Posted By pc2001
Thanks for the detailed explanation, Corona. I've...
Thanks for the detailed explanation, Corona. I've learnt a lot!
4,157
Posted By pc2001
Ha, quite right. I just use copy as an...
Ha, quite right.

I just use copy as an example. Instead of copy, each file will be subjected to some processing and some output from this will be written to disk.

Sorry, I should have...
4,157
Posted By pc2001
Dsh command - shell script - sys args?
Sorry, a noobie question....!

I want to use a linux cluster to copy a list of files. I want to split the processing over 3 nodes so that each node gets (more or less) an equal share.

My script...
3,223
Posted By pc2001
Thanks for the detailed reply, Don. You are, of...
Thanks for the detailed reply, Don. You are, of course right. What I didn't mention about the filenames that the number '124' (for example) is a unique 3 digit number. So there is no chance of a file...
3,223
Posted By pc2001
Hi Don, The 'Barcode' column of the...
Hi Don,

The 'Barcode' column of the worksheet contains the name of the files to be copied. These ids are unique. For example, one id could be 'A123'. The file itself may be called 'xyz_A123.jpg'....
3,223
Posted By pc2001
Thanks! That is probably a cleaner way to do it.
Thanks! That is probably a cleaner way to do it.
3,223
Posted By pc2001
Thanks! Got it.
Thanks! Got it.
3,223
Posted By pc2001
Hi Don, I wish! Okay, here's what I've...
Hi Don,

I wish!

Okay, here's what I've go so far:

#!/bin/bash

#
# 1. Read in input file and separate out filename
# 2. Search for it
# 3. Copy it in a directory
# 4. Create file with...
3,223
Posted By pc2001
Basic loop awk/shell script question..
Hi,

Sorry if this is a newbie question. I guess you can use either awk or shell script for this sequence of operations, but knowing very little about either of them I'm not sure how I should try...
1,374
Posted By pc2001
Ssh tar file using slave node
Hi,

I wanted to zip some files (very large files) on our cluster (centOS). I am told that I should use the head node for this as it would tie down the CPU. How can I do this using one of the other...
1,700
Posted By pc2001
I tried chmod g+w "/path/to/Folder/Y" ...
I tried

chmod g+w "/path/to/Folder/Y"

but it didn't work. Error given is "Operation not permitted"
Showing results 1 to 25 of 29

 
All times are GMT -4. The time now is 06:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy