Search Results

Search: Posts Made By: ektubbe
1,847
Posted By ektubbe
Do you have any code for it please?
create an alias with the pipe symbol as fhe first charracter, followed by thename of the script to execute. the email complete with headers will be the standard unput
3,804
Posted By ektubbe
Shell script works fine as a standalone script but not as part of a bigger script
Hello all,

I am facing a weird issue while executing a code below -

#!/bin/bash
cd /wload/baot/home/baotasa0/sandboxes_finance/ext_ukba_bde/pset
sh UKBA_publish.sh UKBA 28082015 3
if [ $?...
1,847
Posted By ektubbe
Invoke a shell script in case mail with a specific subject is received
Hello fellow forum members,

I have a script which returns a date (I can design the script to return the value in email), How can I design the script in AIX to invoke another shell script which...
7,892
Posted By ektubbe
Need support for a shell scripting problem
Hello all,

I am facing a weird issue while executing a code below -

#!/bin/bash
cd /wload/baot/home/baotasa0/sandboxes_finance/ext_ukba_bde/pset
sh UKBA_publish.sh UKBA 28082015 3
if [ $?...
8,081
Posted By ektubbe
I tried that, but it didn't work and threw error...
I tried that, but it didn't work and threw error on the same line I mentioned in the first post :( ...will run with -xv option tomorrow n share the logs
8,081
Posted By ektubbe
Thanks madeingermany...I tried but the error is...
Thanks madeingermany...I tried but the error is still because of line I mentioned in my first post n I am using AIX so most of the commands don't work...I need to do date calculation for an arbitrary...
8,081
Posted By ektubbe
Need help with date arithmetic please
Hello fellow forum members,

I wrote below piece of code to calculate the date after a given date -
date=$DATE_FINAL
declare -a max_month=(0 31 28 31 30 31 30 31 31 30 31 30 31)
eval $(echo...
2,386
Posted By ektubbe
Thank you very much zaxxon..it worked :)
Thanks again, I am just curious that I includedksh library in the starting of script by writing below code -
#!/bin/bash
#!/bin/ksh
#!/bin/sh
#!/bin/csh
Then why it picked up only bash syntax :(
2,386
Posted By ektubbe
Need help with array substitution
Hello all,
I have following piece of code which is working fine if executed standalone -
date=$1
set -A max_month 0 31 28 31 30 31 30 31 31 30 31 30 31
eval $(echo $date|sed...
13,831
Posted By ektubbe
Open and edit a file using a shell script
Hello Folks,
I have a file named as date.dat present at /tmp/abc location which has following data -
20161030,20161031,20161101
I need to remove this line and replace it with something like below...
12,749
Posted By ektubbe
That was good, but did not help sorry...
Thank you for the solution, but I do not deal with system date, it is an arbitary date given by the system and I need to minus a day from it.
12,749
Posted By ektubbe
Need to minus one day from a date given
Hello Folks,

I have a variable output holding date as below -
output = "20141220"
I need to extract a day out of it and store it in another variable i.e. something similar to below -...
7,056
Posted By ektubbe
It worked
:D:D I worked.. thank you very much !
7,056
Posted By ektubbe
Thank you Andrew
Hello Andrew,
Thank you very much for sed solution, it worked, however if I wish to store the value of bdfo_run_date instead of displaying it, what can exactly be done please?

Thanks in advance !
7,056
Posted By ektubbe
Need to extract value from a variable
Hello All,

I have a variable named as output which holds value as below -
output=[record
bdfo_len 73
bdfo_key " 200000016"
bdfo_param_no "000"
parm01 NULL
...
5,290
Posted By ektubbe
Apologies if I confused you, I tried executing...
Apologies if I confused you, I tried executing command with set -vx option and it did not yield any result, I did not pass command line argument i.e. $1 as I tried in my previous post rather used...
5,290
Posted By ektubbe
Thank you RudiC and bakunin, but it did not solve my problem
Hello both,

Thank you for writing back, the last line i.e. head -35 should return with a record like I am mentioning below - Record 1:

[record
bdfo_len 73
bdfo_key " ...
5,290
Posted By ektubbe
Below is the command, which is used for accessing...
Below is the command, which is used for accessing multi files, what I was trying to do is to pass the name of the file as an argument, which is highlighted below -

m_dump...
5,290
Posted By ektubbe
Need to pass variable in a command and assign value to a variable
Hello All,

Hope you're doing well !

I am trying below command to be passed in a shell script, header_date_14 is a variable and $1 is the name of a file I intend to pass as a command line...
5,310
Posted By ektubbe
guess you were right.. just now i discovered gcc...
guess you were right.. just now i discovered gcc on my AIX so i guess C would be the best way to do it...can you pls illuminate a bit on it.. i have never been very good with C .. ..thanks a lot :) :)
5,310
Posted By ektubbe
actually we work on citrix..only a handful of...
actually we work on citrix..only a handful of applications n due to n/w security they wont allow you to take files out of system..else i would have tried it with java too :(
I need some help for...
25,748
Posted By ektubbe
can you please elaborate more?
can you please elaborate more?
5,310
Posted By ektubbe
Need help with Reading/Editing of EBCDIC files at UNIX
Hi Folks,

I need your help with Reading/Editing of EBCDIC files at UNIX. "dd" is not helping much so "iconv" too (as my file is packed decimal type). we will not be able to get access of...
6,779
Posted By ektubbe
How to pass a filename as a command line argument
Hi,I have a script which is given below :#!/bin/bash. ini_script.shdb2 connect to $DB_NAME user $DB2_UID using $DB2_PASSWORDfor file in `ls -1 ./sql/ddw/`do echo "Executing the file $file" ...
2,012
Posted By ektubbe
#!/usr/bin/env bash # change the directory...
#!/usr/bin/env bash
# change the directory names to be your source, destination and filter
sdir=/data1/T2EDW/R1D1_SIT/initial_files/00800010
ddir=/home/dstst/ekta
fdir=/home/dstst/ekta/xp

#...
Showing results 1 to 25 of 39

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