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

Shell command output into HTML

Hi unix geeks out there, I have a file that contains the output of a command in text format Code: ------------------------------------------------------------------------ r201535 |...

View Article


How zcat works?

Hi, just i would like to know, how will be the response if you try to read a 40GB compressed file using zcat. a)Uncompress the 40GB file and have it in the disk. use cat to view the steps. b)Use zcat...

View Article


Script to list the file names in a directory

Hi all, I need a shell script to write into a .txt file the no of files in a directory with extension and separated by comma in between. For eg, a directory contains files like a.csv b.csv c.csv d.csv...

View Article

Add "1234" to specific field in second column

i have this file Code: 073274753,0544901701,20101201,000316 038873722,69647455,20101130,235257 26213399,0545335767,20101201,000930 063330167,0566000101,20101201,000226...

View Article

Perl script to change the date in some scenario

Hi , I have file FSN.log which contains number 100. i have other Perl script when i run it , it ll increment this FSN.log value. now my requirement is when the count in FSN.log becomes 999, it should...

View Article


File representing the hard disk storage device

I want example of a file representing the hard disk storage device In UNIX ?

View Article

Date calculation

Hi I have this date 11:30:02-31.11.12 How to calculate date between this date and now ? I like it printed like this: Code: 31D 2H 1M if possible.

View Article

How to configure iSCSI TOE w/ load balancing?

Sorry guys but let me start off by saying I am an AIX noob! I am running AIX 6.1 and recently purchased two iSCSI TOE cards. The plan is to connect these two cards to a Dell EqualLogic SAN and that has...

View Article


Redirect all browser traffic to website x

Hello everyone, I need to write a shell script, that redirects all traffic in your browser to a website x. That means: 1. User sends a request to load website "www-somerandomwebsite-com" 2. the script...

View Article


Image may be NSFW.
Clik here to view.

Scripting numpty question

Hi, Newbie ( to the forum ) here.... Just started a new job.... Used to work for Sun Microsystems as a hardware engineer, now am trying to move more into Sys Admin/ Software ... Never really needed...

View Article

Nagios , clean all alerts

In NAGIOS i have an host with lots of alerts , host detail- warnings -service , is there any way to acknowledge all of then at one time , or i have to click in all of then one by one?

View Article

Difference in conflict resolving between yum and rpm installs

Hi Guys, I am trying to test installation of a local rpm to my RHEL5 server. I am expecting it to fail as a previous version of the same package name exists. On using rpm -i this behaves as expected...

View Article

Image may be NSFW.
Clik here to view.

The Superstring Theory

2012-12-31T18:58:35+01:00 Tweet Source...

View Article


Copy Data from CSV file to Excel Sheet using Perl

Hi All, Firstly I will like to wish A Happy New Year to all. Now my issue is I have one csv file say(data.csv) and one excel file say(result.xls) The result.xls contains two sheet name Sheet1 and...

View Article

CD-ROM issue with PowerVM IVM VIOS

I am facing problems in moving CD-ROM from one lpar to another. CDROM can be seen on the POWERVM (IVM) server , but through the web-access if I move it ( assign it ) to LPAR it will be assigned. I run...

View Article


Script runs in shell but not cron

We run some menu driven software that has the ability to batch menu paths and generate reports quickly. Normally you run a batch like: Code: $ BATCH BATCHNAME The batch program then prompts you for the...

View Article

Count of Multiple Fields(After Validation) in UNIX

Hi , i have scenario where i have to get count of each field ,if the field have value equal to "A" For Example : Code: Field_01    Field_02   A              A   A              B   B              A   A...

View Article


Connect to SQL server from Linux

I am trying to establish connection with SQL server 2008 through ODBC on Linux. First step would be 1. How to verify if ODBC driver for SQL server is installed on Linux OS. PLease let me know how to do...

View Article

Problem with expect script

Code: expect {         -re "(.*)NEXT PAGE(.*)" {         send "\r\n"         }         exp_continue Quote: i just want to put for loop in this code i.e. till the time i am getting reply like NEXT PAGE...

View Article

Issue Running UNIX process from CRON !!

Experts, Not sure whether the problem described here is related with Unix or is it with Oracle Installation. Here is the description of the issue: A new Unix server is setup as a part of Unix and...

View Article
Browsing all 16232 articles
Browse latest View live