Search Results

Search: Posts Made By: asak
819
Posted By asak
Word ladder Problem
Perl - Script

Rules
In a Word Ladder:

Players get a starting word and an ending word
Starting and ending words must be the same length (PIG and HOG, or CAT and DOG)
Players change one...
4,292
Posted By asak
HI, Thanks for the code, but the header and...
HI,

Thanks for the code, but the header and row are hard coded, in my case it an variable, some times i will get 4 name and some time 10 names. how to accommodate that?

---------- Post...
4,292
Posted By asak
Need to print hash of hash in table format
Hi, I have a hash of hash where it has
name, activities and count

i have data like this -

$result->{$name}->{$activities} = $value;

content of that are -
name - robert tom cat peter...
Forum: Programming 02-11-2016
2,339
Posted By asak
Thanks, but when i tried - i am getting...
Thanks, but when i tried - i am getting permission issue. can you please help
[root@scsos0001413001 ~]# perldoc -otext -d mod_data perllocal
Can't write-open mod_data: Permission denied at...
Forum: Programming 02-02-2016
2,339
Posted By asak
Redirecting output to new file for command "perldoc perllocal"
Hi,

I have to redirect output of the command "perldoc perllocal" to new file which
contains all the perl module installed.

Currently using

perldoc perllocal >> mod_data


This does...
2,894
Posted By asak
hi, I executed command given by you. ...
hi,

I executed command given by you.

[asak@bon SCRIPTS]$ ps -ef | grep test | awk '!arr[$(NF)]++'
arr[: Event not found.

I got an error..
Event not found

I need to list out only...
2,894
Posted By asak
List of process of user
Hi,

I need an output of process running on server, i am executing

ps -ef | grep test

output is

asak 22362 1 0 Nov07 ? 00:00:03 /usr/software/bin/perl-5.8.8...
4,267
Posted By asak
Compare values of hashes of hash for n number of hash in perl without sorting.
Hi,

I have an hashes of hash, where hash is dynamic, it can be n number of hash. i need to compare data_count values of all .

my %result (
$abc => {
'data_count' => '10',
'ID' ...
1,810
Posted By asak
get selective input and run cron job.
Hi,
I have one shell script where it will copy all files to a directory which is already present,

For example :
i have directory DIRA and DIRB, and my shell script will expects user input to...
10,187
Posted By asak
Hi itkamaraj, I tried $ which p4 ...
Hi itkamaraj,

I tried

$ which p4
/usr/software/bin/p4


And gave absolute path as told.
it is working now.

(b4p4: using $P4CLIENT userk:p4_client; $P4PORT p4netapp:16)
File(s)...
10,187
Posted By asak
I tried with space and also without space, p4 is...
I tried with space and also without space, p4 is a command so i tried giving with space , still same i am getting, the script runs fine when i execute from my home directory, but when i execute from...
10,187
Posted By asak
Hi itkamaraj, Giving complete path also...
Hi itkamaraj,

Giving complete path also gives the same error,

/u/userk/p4/p4_client/TES_DATE/ p4: No such file or directory

Regards,
asak
10,187
Posted By asak
Hi Clx, i tried by giving complete path...
Hi Clx,

i tried by giving complete path getting like this,

/u/userk/p4/p4_client/p4: No such file or directory


and one more thing, i am going into the directory where p4 is present using...
10,187
Posted By asak
crontab using shell script to sync files.
Hi,

I developed one shell script where it will sync the files using perforce,

#!/bin/bash
TERM=linux
export TERM

clear
echo ""
$PATH
echo ""
cd /u/userk/p4/p4_client/TES_DATE
echo ""...
2,462
Posted By asak
Configuring Apache an php Directory root.
Hi ,

I have installed apache and configured Document root as /home
DocumentRoot "/home"

The files under home directory is listed on the web server, i have one text file under...
2,005
Posted By asak
HI Scrutinizer, Thanks for your reply, but...
HI Scrutinizer,

Thanks for your reply, but how to assign the values to two different variables.
ex:

TERMINAL - 122.25.000.220
PORT - 6038


Thanks,
asak
2,005
Posted By asak
Extract terminal ip and port from line
HI,

I have a line
conn console {conntype=serial;connhost=122.25.000.220;connport=6038;password=123!}

and i am using the below code to extract the ip.

while read line
do
if...
6,080
Posted By asak
hi, $ uname -a Linux lb.app.com...
hi,

$ uname -a
Linux lb.app.com 2.6.23.1-42.fc8 #1 SMP Tue Oct 30 13:55:12 EDT 2007 i686 i686 i386 GNU/Linux

$ echo $SHELL
/bin/csh

$ perl -v

This is perl, v5.6.1 built for i686-linux
...
6,080
Posted By asak
Hi,, I am getting output as ~]$ perl...
Hi,,

I am getting output as

~]$ perl -e '$x=5860533159; printf "%#X\n", $x'
0XFFFFFFFF



---------- Post updated at 01:09 AM ---------- Previous update was at 01:07 AM ----------


...
6,080
Posted By asak
Hi, I am using the same script, but my...
Hi,

I am using the same script, but my output is 0xffffffff ..

Thanks,
asak
6,080
Posted By asak
Convert to Hex in perl
Hi,

i want to convert number 5860533159 to hexadecimal. i need to use perl.
i used

$foo = 5860533159;
$hexval3 = sprintf("%#x", $foo);


i am getting value as 0xffffffff.

i need to...
8,883
Posted By asak
Hi tyler, i did'nt get your code, can you...
Hi tyler,

i did'nt get your code, can you please explain,

Regards,
asak
8,883
Posted By asak
Perl Script for reading table format data from file.
Hi,

i need a perl script which reads the file, content is given below. and output in new file.

TARGET DRIVE IO1 IO2 IO3 IO4 IO5
------------ ...
1,733
Posted By asak
Truncate all characters and numbers in string - using perl
hi,

I have an data from file where it has

20110904 234516 ...
7,713
Posted By asak
HI itkamaraj, i tried both the ways, this ...
HI itkamaraj,

i tried both the ways, this

system(qq(mutt -a $LOGDIR asak@gmail.com) < /dev/null);
will results in syntax error

Bareword found where operator expected at att.pl line 2,...
Showing results 1 to 25 of 48

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