Search Results

Search: Posts Made By: messi777
752
Posted By messi777
Scripting for web
Hi all, Sorry if this might irrelevant. but I need to automate a task to download some files from a website. is it possible? or what scripting languaage I should use ? any idea?
1. open the link...
2,506
Posted By messi777
ikamaraj!!! thanks!! thats what I want!! but what...
ikamaraj!!! thanks!! thats what I want!! but what is the diff between your code and mine? what does printf do? and what does %s do?
2,506
Posted By messi777
sample: DDI|438.0|517.0|5274.661| ...
sample:

DDI|438.0|517.0|5274.661|
TD|1125.0|1312.0|4556.293|


desired:

Type Number types Total
DDI 438.0 517.0 5274.661
TD 1125.0 ...
2,506
Posted By messi777
awk formatting
Hi all,
I'm writing a simple awk code:

awk 'BEGIN {FS="|"};{print "Type\tNumber\ttypes\tTotal";};{print $1, "\t", $2, "\t", $3, "\t", $4, "\t";}' db_query.txt


it gives me the result:
Type ...
1,234
Posted By messi777
Jim, what does this mean? pid=$(cat...
Jim,

what does this mean?

pid=$(cat $MYLOCKFILE) if [ -z "$pid" ] ; then echo $$ > $MYLOCKFILE # ok to run



and this:


else echo ' this is a restart' echo...
1
1,509
Posted By messi777
exec
Hi,

i don't understand this part of one script


exec >> $Log_File 2>&1
3,263
Posted By messi777
ps vs ps -ef
Hi,

when I type


ps


I only get 3 or 4 current processes but with switch of -ef I get few pages of processes. can somebody tell me why this happens?

cheers,
m
1,234
Posted By messi777
can I just do this? #!/bin/sh if [ $(ps...
can I just do this?


#!/bin/sh
if [ $(ps -ef | grep "/myapps/app1/try/messi/cz/t.sh" | grep -v grep | wc -l) -gt 1 ]
then
echo "Im running $(date)...exiting "
exit 1
fi
1,234
Posted By messi777
Avoiding the second run of the script
Hi all,

I want to put a check in my script to check if the same instance is already running and not finished and if not then does not allow it to run! in which part of my script I should put this?...
7,975
Posted By messi777
yeah sorry the quote should go to after the...
yeah sorry the quote should go to after the resize command.
7,975
Posted By messi777
its vt220 i know even resize itself works...
its vt220

i know even resize itself works fine. but I need to put this resize command into my screen script. I am using 'screen' in putty to make me be able to have multiple screens in order to...
7,975
Posted By messi777
Putty - window size
Hi Guys,

When I use putty and maximize it, then the second half of the emulator window is not utilized and used! I mean the mouse cursor is at the half of the page not at the bottom! i have to...
25
7,040
Posted By messi777
cheers mate! thanks for helping
cheers mate! thanks for helping
25
7,040
Posted By messi777
what I wanted to have is: time stamp ...
what I wanted to have is:
time stamp file name content of the file
----------- -------------- -----------------


is it clear now for...
25
7,040
Posted By messi777
vbe!!!!!!! because of the partial copy paste of...
vbe!!!!!!! because of the partial copy paste of yesterday I had to go and write/learn another way :D

but really appreciate your patience:
mine below which are int he same line :D :

for var in...
25
7,040
Posted By messi777
Jayan, it did not work! it does not cat. the...
Jayan, it did not work! it does not cat. the result is below:

echo "Mar 4 2009 text1.txt" ; cat text1.txt echo "Apr 10 2009 text2.txt" ; cat text2.txt

---------- Post updated at 03:09 AM...
25
7,040
Posted By messi777
vbe, i understand this but It just does not my...
vbe, i understand this but It just does not my while part...it just prints until end of my ls+awk..do you get me? it does not show the file content...i used your code just now and got this:

???...
25
7,040
Posted By messi777
vbe, I don't understand the while part! what...
vbe,

I don't understand the while part! what you ahve posted is just an example? or i should do the same? I mean it's just a sample? right?
25
7,040
Posted By messi777
I get this one: messi > ll -tr | awk...
I get this one:

messi > ll -tr | awk '{getline word < $9; close($9); print $6, $7, $8, $9, word}'
awk: A print or getline function must have a file name.
The input line number is 1.
The...
25
7,040
Posted By messi777
Nope sorry it does not work! :(
Nope sorry it does not work! :(
25
7,040
Posted By messi777
I'm not a clumsy guy but I did not understand vbe...
I'm not a clumsy guy but I did not understand vbe code very well

and Jayan's one seems not working on my hp-ux box!!!!!


ll -tr | awk '{print "echo \""$6,$7,$8,$9"\" `cat "$9"`"}'

result: ...
25
7,040
Posted By messi777
awk+cat
Hi,

I am doing this:


ll -tr | awk '{print $6, $7, $8, $9}'


the result is:

Dec 30 2008 text1.txt
Mar 4 2009 text2.txt
Apr 10 2009 text3.txt

and now I want to show the content...
Forum: HP-UX 10-12-2011
20,294
Posted By messi777
FTP service Enable/Disable
hi everybody,

I can easily enable /disable the FTP service from SAM, how can I do this via command line? using inetd? how?

cheers,
messi
1,309
Posted By messi777
it gave me some result but not really obvious. i...
it gave me some result but not really obvious. i want to check if my server has ftp?
where is the location of that?
and what are the credentials? (because somebody wants to ftp some files into my...
1,309
Posted By messi777
FTP service/ set up
Hi Everybody,

How can I understand when I login to any unix server that this server is having ftp service running? what I care is that I want to ftp something to this server and I can't, something...
Showing results 1 to 25 of 73

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