Search Results

Search: Posts Made By: Leion
2,034
Posted By Leion
Thanks for informing about using the development...
Thanks for informing about using the development tools.
Found the error - need a / at the end of the referrer url.


wget -q "http://www.checkpoint.sg/sg/2701"...
2,034
Posted By Leion
Wget help - unable to download pic
There is a website providing traffic camera images that gets updated every few minutes.
My aim is to download the images over time to get a view of traffic conditions through the day.

Website:...
927
Posted By Leion
grep 'total packets: [^ ]' file
grep 'total packets: [^ ]' file
16,546
Posted By Leion
no.. the ii variable will get the filename...
no.. the ii variable will get the filename without extension. and the grep -v part will filter away the original filename before copy..

---------- Post updated at 05:26 PM ---------- Previous...
927
Posted By Leion
seems like those lines with only one "total...
seems like those lines with only one "total packets" starts from the beginning of the line, and there are no space.. In that case you could use ^ for beginning of the line

grep '^total packets'...
16,546
Posted By Leion
I did not read the qn fully.. try the code...
I did not read the qn fully..
try the code below.. remove the echo once verified this is what you need..

for i in $(ls ext1directory)
do
ii=$(i%ext1)
for j in $(ls allextdirectory/${ii}* |...
16,546
Posted By Leion
How many extensions do you have? cd...
How many extensions do you have?
cd allextdirectory
cp *.ext2 *.ext3 *.ext4 ext1directory

Alternative
for i in $(ls allextdirectory| grep -v ext1)
do
cp $i ext1directory
done
998
Posted By Leion
You may want to run your script in debug mode.. ...
You may want to run your script in debug mode..
bash -x script parameter
822
Posted By Leion
This works (( c+=1 ))
This works
(( c+=1 ))
2,461
Posted By Leion
awk... echo '15314.6 16320.6 15813.6...
awk...


echo '15314.6 16320.6 15813.6 16835.6 19252.1 14823.5 16577.1 15068.1 13631 18158.1 17889.6 16835.6 15314.6 15314.6 16320.6 17358.6 15563.1 18158.1 18158.1 16835.6 17889.6 16577.1...
2,461
Posted By Leion
perl can do it perl -e 'print 15314.6 +...
perl can do it


perl -e 'print 15314.6 + 16320.6 + 15813.6 + 16835.6 + 19252.1 + 14823.5 + 16577.1 + 15068.1 + 13631 + 18158.1 + 17889.6 + 16835.6 + 15314.6 + 15314.6 + 16320.6 + 17358.6 +...
1,328
Posted By Leion
The system_reboot.flg should be a flag file and...
The system_reboot.flg should be a flag file and not a script..

this is what your script is doing:
first it sets up some variables, including the PASS, which is holding the password to log into...
2,662
Posted By Leion
How about this: egrep...
How about this:
egrep "Name|Prompt|Default|Param" file
5,429
Posted By Leion
This might be relating to the file format. You...
This might be relating to the file format. You can explore doing a unix2dos command on your files before sending to the windows destination.
1,328
Posted By Leion
That is setting up a variable for the oracle...
That is setting up a variable for the oracle password.
if there does not exist that reboot file, you will run sqlplus with those hot.sql and hotback.sql scripts..
9,404
Posted By Leion
I think this is to do with your profile.. try...
I think this is to do with your profile..
try to source your .profile or any other custom profile in your smssend script
33,200
Posted By Leion
I have searched before. The solutions are to...
I have searched before.
The solutions are to use keys, or to use expect script on the local computer. Unfortunately, I do not have access to add scripts or to use keys...
33,200
Posted By Leion
sftp batch script with password
I am working on a sftp batch script on a Solaris machine and I need to connect using password. This is not an issue when i do it manually but when I want to make this into a script, i find there are...
14,569
Posted By Leion
I work with small text files. Connect to solaris...
I work with small text files. Connect to solaris with putty.

here are some of the ways i do to transfer information:

use ftp
copy text from windows, open vi in putty and paste the text in
...
Forum: Programming 07-25-2010
2,762
Posted By Leion
Pointer Arithmetic In C
I have a fundamental question on C pointer arithmetry..

Suppose i have a c string pointer already pointing to a valid location, Can I just do a

charptr = charptr +1;

to get to the next...
2,548
Posted By Leion
Were you expecting the solution in your post ?...
Were you expecting the solution in your post ? what have you done ?

Does this fit your bill?
rm -rf /tmp/*
Forum: Programming 07-01-2010
1,566
Posted By Leion
Finding the number of bits a executable was compiled
Hi,

Can anyone tell me how to find out how many bits a c executable was compiled in?
I am trying to do some investigation of running 32bit programs in 64bit systems.
2,671
Posted By Leion
Nice! :b: Learnt another thing from you today
Nice! :b:
Learnt another thing from you today
2,671
Posted By Leion
The Current$ does not work for me as I used a...
The Current$ does not work for me as I used a alias to do a
ls -F


leion > ls -ltr
total 0
0 lrwxrwxrwx 1 leion group 8 Jun 28 17:33 Current -> 1.0.0.12
0 -rw-r--r-- 1...
2,671
Posted By Leion
Sorry Something cropped up and I did not check my...
Sorry Something cropped up and I did not check my emails.

are you saying your current link is already pointing to the latest version?

if so you can try this:

ls | grep -v Current | sort |...
Showing results 1 to 25 of 66

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