Search Results

Search: Posts Made By: yashavant.a
6,865
Posted By yashavant.a
In shell script there are no data types.
In shell script there are no data types.
6,100
Posted By yashavant.a
As u r deleting the directory, u hv to give...
As u r deleting the directory, u hv to give recursive option. So with little modification it will work.

find dataVolumes/Booba.1.0 \( -type d -name 'RC-*' -prune \) -o -mtime +7 | xargs rm -rf
9,524
Posted By yashavant.a
hi, u can try the following code: cd...
hi,

u can try the following code:
cd $FILEDIR
awk '{print $9,",",$6,$7,",",$8}' $FILELIST > $TARGTDIR
cd -
3,064
Posted By yashavant.a
sort -t "|" -k 2 filename output: 11356 ...
sort -t "|" -k 2 filename

output:
11356 |30005730|01| |CR|
11356 |30005730|01| |IN|
11356 |30005731|01| |CR|
11356 |30005731|01| |IN|
1,671
Posted By yashavant.a
Question on Pthreads
How to give superuser privileges while setting the attributes like pthread_attr_setschedpolicy( )??
Even with normal user mode ,it is working fine for me.But in man pages, they have specied that to...
14,930
Posted By yashavant.a
Hi, In ur machnie config ftp server and use...
Hi,

In ur machnie config ftp server and use that one for file to put on server.
1,339
Posted By yashavant.a
Hi, U r using here document. For creating...
Hi,

U r using here document. For creating here document the start and end sholud be specified by giving uique string. In ur case u r using OP1.
3
4,370
Posted By yashavant.a
hi, Inode is the information about the...
hi,

Inode is the information about the file. It will be having info like permission, no of links ( hard link), time stamps (change time, modify time and access time), owner, group, size.
...
21,988
Posted By yashavant.a
hi, This is the code for getting lines with...
hi,

This is the code for getting lines with last 3 digits of the third field ends with R16.

awk ' $3 ~ "R16$" { print $3 }' file > filewithR16
3,498
Posted By yashavant.a
Hi Jean-Pierre, I hv modified ur code to...
Hi Jean-Pierre,

I hv modified ur code to work on the file.

Input file: input.txt
START
i am in first
block
Now tell me i am...
END


START hello
i am in second
block
now tell me i am...
3,498
Posted By yashavant.a
#!/bin/bash file=input line_no=1 ...
#!/bin/bash
file=input
line_no=1

total=`cat $file | wc -l`
state=0

while [ $line_no -le $total ]
do
line=`tail -$line_no $file | head -1`

if [ "$line" = "END" ]
...
4,881
Posted By yashavant.a
Hi, Put "export DISPLAY=localhost:0.0" line...
Hi,

Put "export DISPLAY=localhost:0.0" line in ur script in the begnning only once. It will work.
4,881
Posted By yashavant.a
Hi, Before pop-up include the below line in...
Hi,

Before pop-up include the below line in the script. So it will work in crontab also.

export DISPLAY=localhost:0.0
Forum: Programming 10-09-2006
3,508
Posted By yashavant.a
Hi, U can use sysem like below to url...
Hi,

U can use sysem like below to url www.abc.com?action=p&a=23

system("mozilla www.abc.com?action=p\&a=23");

The & has special meaning i.e, run the process in back ground, So u have to use...
4,881
Posted By yashavant.a
Hi, By using crontab its not possible to...
Hi,

By using crontab its not possible to pop-up. This is because "$DISPLAY environment variable" in RH9. The environment to pop-up will not be there if no terminal.
3,989
Posted By yashavant.a
#!/bin/bash state=0 while read line do ...
#!/bin/bash

state=0
while read line
do
if [ $state -eq 1 ]
then
echo -e "$first\n$second\n$line\n" >>report.log
state=0
...
Showing results 1 to 16 of 16

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