If you have a dynamic IP Address that isn't in your /etc/hosts, try that :
myIP=`/sbin/ifconfig eth1 | grep addr: | awk '{print $2}' | awk -F : '{print $2}'`
It could certainly be ameliorated, but it works fine
Hope this help
AlexRezid
I want a module that take a file, copy and zip it, look for the size, ask for one or more 3.5" disc and copy the file on the disc(s)
Could someone help ?
Thanks
AlexRezid
Maybe could you use the "watch -n NumberOfSeconds tail -f YOURFILE" command for doing what you want...
That's it if I've understand your meaning.
Alex
Thanks
It works, but not with an open file... And the file I want to copy is my file .mdb with is launching this script...
How can I do ?
Any Idea ?
Alex
Hi all
I've a problem with FileCopy
Private Sub SaveMeAll()
Dim Source As String, Dest As String
Source = "C:\Mes documents\Fichier Client\Client_db.mdb"
Dest = "C:\Mes documents\Fichier Client\Sauvegarde-" & Day(Now) & "-" & Month(Now) &...
Thanks for all SonOF...
I finally did it differently
Here is my code to count the number of lines
Dim Occ As Integer
Public Function ScanLine(s)
Dim LengthofLine
Dim checking
Dim theLine
Dim Tmp
Occ = 1
Tmp = 0
theLine = s
LengthofLine = Len(theLine)...
Thanks SonOf...
Now, I've another problem...
I want to compare each char of my string to the return (\n) char, but I don't know how to write this char in VB...
Because if I write '\n' it tells me an error and if I write "\n" it compares with the string that is write by this two...
Thanks for all Orion
I've already a problem with your script in case of blank fields...
It tells me : rsKeysize.Fields("Len1") : Method or data Member not found
How can I avoid it ?
And for your help : a star :p
Alex
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.