Quantcast
Channel: UNIX and Linux Forums
Browsing all 16232 articles
Browse latest View live

Solaris paging bringing system to halt

Hi experts, I am running a solaris 10 with oracle 10 on a system with 96 GB physical memory. the system has a lot of swap space. the oracle SGA is 50 GB and PGA 40 GB. Here are the stats Code: vmstat...

View Article


Looping/Reading file contents not working

Hi, I am doing something basic, but I am missing something. Im trying to read the contents of a file and taking those values and connecting to a database. However, it only connect to one (or reads in)...

View Article


Ar command not found

Hi all, ar command not found on Solaris 10 version. We can execute under ./ar command /usr/ccs/bin directory. However, we want to execute ar command anywhere. We add to /usr/ccs/bin entry under...

View Article

Grep Exact word

This may be stupid question but not able to solve it. How to grep exact word and line along with it. TEST:/u00/app/oracle/product/10.2.0/TEST:N TEST2:/u00/app/oracle/product/10.2.0/ODS:N...

View Article

Python:Picking values from a table

Hi I trying to write a python script that executes a command to screen scrub results below I will appreciate it very much if you can help me with a python script that can pick the percentage USAGE in...

View Article


How do you get the last modification date of a file?

I'm trying to get the date output to be in the form yyyy-mm-dd (e.g. 2013-01-18) Code: !/bin/sh modDate=$(stat -c %y $1) echo $modDate >> $1 When I run this on another file (by typing...

View Article

To make an ftp server writable

I want to implement an FTP server on RHEL 5.8 system where the users can upload files either from RHEL or Windows systems but am not able to copy files to it from a browser session. For eg. URL -...

View Article

Html??

Hello Guys, I'm new in programming line & I want to learn HTML but I don't know which is the best website who learn HTML..So guys help me....

View Article


Loop usage with counter

Hi friends, I just want to try some thing with shell using loop and counter I have 30 Directory, in each directory number of files say 5, 10, 20 etc... Code: directory_1 directory_2 directory_n what I...

View Article


Renaming a filename

Hi friends , i want to change the filename as below Code: filename=ABC_HYND_JDHD_20130125120345.txt Code: expected output : ABC_HYND_JDHD_20130125.txt i have tried using awk but not able to procedd...

View Article

awk command help

Hi All, I am trying to write one command but failing to do so.. Input: Code: 1 a 4 2 b 5 3 c 6 Output Code:     4 5 6 1 a 2      b 3            c Kindly assist

View Article

Not able to understand IFS

Hi , i am in my initial learning phase of unix. i was going thru the function part. below is the example which was there but i am not able to understand logic and the use of IFS(internal field...

View Article

Image may be NSFW.
Clik here to view.

UNIX script -- case

i could like to try when i input a integer , the program would give the result i want but it doesnt . I input 2 , and the result should be "it is greater than or equal to one" could any ching give me...

View Article


Resolving the environment variable from a file

Hi, I an having some environment variables exported and the variable name is present in the file. But its not resolving with following commands. Can someone throw some light. Code: db $ grep -v "^#"...

View Article

Sort by specific order?

Hello all I was wondering if someone has an idea how to sort by a specific order, let's say by a specific alphabet containing only 4 letters like (d,s,a,p) instead of (a,b,c....z) ?? Cheers!

View Article


Image may be NSFW.
Clik here to view.

Create Alert for Database Problem

Hi all, I new to scripting and i need to know how to put the script when the capture goes down in the feeds database.. I tried with this "ps -ef | grep asn" command and it displaying the capture,apply...

View Article

How to copy set of lines n times?

I have a file with following data Code: A B C I would like to print like this n times(For eg:n times) Code: A B C A B C A B C A B C A B C A B C . . . A B C Code: My shell is csh Also this may be...

View Article


Bulk load testing in regular intervals

I need to write a script which can send files via sftp communication continously for half an hour or any given duration of time. I have already written a batch file to send multiple file via SFTP. but...

View Article

Image may be NSFW.
Clik here to view.

How to compare two files ?

Hi am just trying to compare two files data... datafile1 is standard data, datafile 2 is varying Code: st_data.txt         Code:         long      lat 68.14    23.48 67.56    22.99 67.08    22.49 66.79...

View Article

[Solved] Listing files starting with p or f and with the exact length of 3...

Hello, I need some help. How can I list files starting with p or f and with the exact length of 3 characters?

View Article
Browsing all 16232 articles
Browse latest View live