Search Results

Search: Posts Made By: userscript
1,773
Posted By userscript
I am running this issue and hepofully this is the...
I am running this issue and hepofully this is the last. When i run the following script i am getting this error

Substitution pattern not terminated at -e line 1.


CRED_PATH=/fxxxx/testpwd/...
1,773
Posted By userscript
Thanks again bartus11. I tried that but the new...
Thanks again bartus11. I tried that but the new string is being appended to eachline in the file.

The output of CURRENT_STR is

<password encrypted="true">+abcd=!password>

I am trying to...
1,773
Posted By userscript
Thanks Bartus11. This worked. However, it...
Thanks Bartus11. This worked.

However, it is replacing the whole file with the whole file with the string in perl statement.

Any thoughts??

---------- Post updated at 01:30 PM ----------...
1,773
Posted By userscript
search and replace
Hi,

I am trying to obtain a string from a file and replace it in another file. Here is my code
# Environment Variables
CRED_PATH=/fxxxx/testpwd/
CRED_FILE=password.credential...
1,884
Posted By userscript
Thanks for the reply. This is what i have in the...
Thanks for the reply. This is what i have in the file

(|(cn=abcd)(cn=pqrs))

This is what i have in tmp1.txt

(cn=mnop)(cn=ajkshd)(cn=akdh)

I was trying to change the string instead of...
1,884
Posted By userscript
Thanks for the reply. I ran the command and...
Thanks for the reply.

I ran the command and it is actually appending the new string to the old one i.e.,

I am getting the following output with the command

ldifde -f c:/temp/file.txt -s...
1,884
Posted By userscript
What does "have a string" mean? Where do you...
What does "have a string" mean?

Where do you have it? In what variable? Or is it in a file?

ldifde -f c:/temp/file.txt -s server -a cn=abcd,cn=users,dc=company,dc=com "password" -r...
1,884
Posted By userscript
Help with sed
Hi,

I have a string as follows


ldifde -f c:/temp/file.txt -s server -a cn=abcd,cn=users,dc=company,dc=com "password" -r "(|(cn=abcd)(cn=pqrs))" -l memberof


The string...
2,217
Posted By userscript
Thanks all for your replies. It worked.
Thanks all for your replies. It worked.
2,217
Posted By userscript
grep command with changing file name
Hello,

I have a grep command as follows:

grep Found original_2010.01.26 | cut -f 5 -d ' '


However the file name changes each day and gets appended with today's date. For ex:

on...
6,036
Posted By userscript
perl-extract data from hash values
Hello,

I have parsed an xml file using perl to get the hash values and the output looks like this

$VAR1 = {

'RT' => {
'List' => {
'String' => [
...
4,441
Posted By userscript
Hello, My issue is resolved. I'm facing a...
Hello,

My issue is resolved. I'm facing a new problem now.

I would like to have the following in the command field

command: cd /tmp/server/x1/stop_script <instancename>

However, when...
4,441
Posted By userscript
command job not running
Hi,

I have an autosys box job and 2 command jobs. When i force start the box job the command jobs are moving to 'Active' state but are not running. I have tried various options for the start...
11,192
Posted By userscript
My problem has been resolved. The issue was with...
My problem has been resolved. The issue was with using relative path vs absolute path. I change it and this fixed the issue.
11,192
Posted By userscript
problem with profile-autosys
Hi All,

I have trying to schedule an autosys job and it is failing. The shutdown script runs fine by itself from the UNIX box but fails when i try to schedule it through autosys.

I have...
7,567
Posted By userscript
autosys
Hi All,

I am trying to run the job as an admin and the path to the stop script actually exists.

The stop script is running fine by itself but not through the autosys job. I ran env>user.env...
7,567
Posted By userscript
Autosys - failing job
Hi,

I am trying to schedule an autosys job for weblogic server reboot. When i run the job it is failing with the following error:

/bin/sh: /path/stop_wls instancename: not found

The...
2,627
Posted By userscript
Thanks.....the issue is resolved. It was a...
Thanks.....the issue is resolved. It was a problem with / vs \.

Thanks for helping troubleshoot it.
2,627
Posted By userscript
Can't open file
Hi,

I have a simple perl script, thru which i am trying to update entries in SQL server DB.


use DBI;
use CGI;


my $DSN = 'driver={SQL...
40,877
Posted By userscript
I tried the following code, however it doesnt...
I tried the following code, however it doesnt seem to work


open (FILE, "/path/dump.xml") || die ("Can't open dump.xml\n");
while (<FILE>)
{
#$sentence=~/data1/ - option1...
40,877
Posted By userscript
Thanks for all the posts.I finally got it...
Thanks for all the posts.I finally got it working. However, i am getting output from both the 'data1' and data2' tags.

My expected output is just from data1 tag - i.e,

abcdef
abcdef1...
40,877
Posted By userscript
thank you all for your replies for the sed...
thank you all for your replies

for the sed comands i am getting this output

C:\Perl>sed -e 's/\(<[^<][^<]*>\)//g' dump.xml
The filename, directory name, or volume label syntax is incorrect....
40,877
Posted By userscript
extract strings between tags
Hi,

I have data as follows in a text file

<key='data1'>
<String>abcdef</String>
<String>abcdef1</String>
<String>abcdef2</String>
</key>

<key='data2'>
<String>abcdef</String>...
7,619
Posted By userscript
Need help in printing a sql query in perl
Hi All,

I have the following sql query

select abcd from udbadm.log where xyz='1'.

I have 16k queries similar to this with different values for xyz.

I want to print the values of...
1,625
Posted By userscript
Yogesh, Thanks for the response. I have...
Yogesh,

Thanks for the response. I have defined use XML::Simple in my script.

I was able to parse the xml file successfully using that. However when i try to get values for paricular fields i...
Showing results 1 to 25 of 33

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