Search Results

Search: Posts Made By: mpang_
2,186
Posted By mpang_
waiting
I have a text file which contain all the parameters need for scheduled jobs, then this "control" script would be called everynight at certain time

while read line
do
$myScript.sh...
2,068
Posted By mpang_
yes, I did, it's exactly what i expected. But...
yes, I did, it's exactly what i expected. But through batch, things come out differently, thanks!
2,068
Posted By mpang_
sftp result
Hi, I have a sftp account to another server, from which I need to find out all the files match "*.abc.*.xml" pattern in a certain directory. I have a batchfile as follows

cd /tmp
ls -l...
5,714
Posted By mpang_
Redirect output
Hi all, I have a script which call a java program, the logging (to log file) in the program is done using log4j. However, as a safety measure, i still choose to direct standard error to another log...
4,079
Posted By mpang_
I don't believe i would have access to those...
I don't believe i would have access to those commands, would it be possible that I try to figure out whether the sftp process was a sucess by looking at the output? Would it be possible to check...
4,079
Posted By mpang_
may I ask how "count the number of records in the...
may I ask how "count the number of records in the source", can be done?

i have tried "ls -l *.temp.ack | wc -l", but i got

Couldn't stat file ``/tmp/source/wc'', error msg: syserr: No such...
4,079
Posted By mpang_
sFTP result
Hi all,

batchfile
======
lcd /home/data/
cd /tmp/source/
get "*.temp.ack"
quit

Result from sftp
============
1111.temp.ack| 0B | 0B/s | TOC: 00:00:01 | 100%^M ^M2222.temp.ack | 0B | 0B/s...
4,951
Posted By mpang_
yes, i am, I simply copy and paste (in case I...
yes, i am, I simply copy and paste (in case I mis-type anything), why would be work?
4,951
Posted By mpang_
thanks everyone, especially anbu23! My...
thanks everyone, especially anbu23!

My input is a very big xml file with foreign language characters, but I would assume it doesn't make much different. Structure of the xml is just as I...
4,951
Posted By mpang_
yes, I did
yes, I did
4,951
Posted By mpang_
it doesn't work...nothing returned
it doesn't work...nothing returned
4,951
Posted By mpang_
but my ID is random, say 28654..then what should...
but my ID is random, say 28654..then what should I do?
4,951
Posted By mpang_
I don't quite get what exactly that command does,...
I don't quite get what exactly that command does, do you mind explain it a little? Thanks!
4,951
Posted By mpang_
search a long line
Hey all, I need to retrieve something from a line, say

<TEST><A>123</A><B>456</B><ID>1111</ID><C>789</C><D>000</D></TEST><TEST><A>123</A><B>456</B><ID>2222</ID><C>789</C><D>000</D></TEST>


I...
3,156
Posted By mpang_
perm bits
hi, in other previous post, someone suggested to set the " perm bits " to lock the file such that preventing others write to that same file, could someone please explain exactly what is perm bits ...
3,874
Posted By mpang_
thank you so much for all your excellent advices!...
thank you so much for all your excellent advices! However, I would like to add one more detail, I actually have 2 jobs (using the same script with different parameters) starting at the same time,...
3,874
Posted By mpang_
process
Hi, I have a job which I need to run every 15 minutes, however, I need to ensure that previous job (15 minutes) is done before I can start a new one, how can I do that? THANK YOU SO MUCH!
1,973
Posted By mpang_
Retrieve message from file
Hey all, I have this file which contains a lot of messages in format like

[2/2/07 13:23:00] This is my message!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!...
1,976
Posted By mpang_
Script invoking another script
I have this script which would perform calculation and echo the value, and now I want to incorporate this calculation script in my other script, so

calculation script
==============
#!/bin/ksh
...
6,703
Posted By mpang_
script to return value
I have 3 scripts

script A - wrapper script to disguise invoker true identity

script B - perform database operation and return a value (either W/H)
-> return value by echoing the result
...
1,208
Posted By mpang_
db to variable
Hey, my script perform an operation which would a value from db and then I would assign it to a variable, I have used the "-x" to supress the column header but my variable still show "W 1 result...
3,971
Posted By mpang_
Access Control List
Hey all, I have a directory (own by user: b; group: grpB) which I want a user (user: a; group: grpA) to be able to read and execute from, I wonder if I should add user a to this particular...
3,092
Posted By mpang_
extract segment
Hey all, could someone please direct me on how to extract a segment from a file between two tags? Thanks!
3,899
Posted By mpang_
it's AIX, thanks!
it's AIX, thanks!
3,899
Posted By mpang_
Input parameters
I have a script which take 3 input parameters

1st - a date (i.e. current date)
2nd - type (i.e. A)
3rd - limit (i.e. 40)

normally the date parameter would be current date, so I thought I...
Showing results 1 to 25 of 88

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