Search Results

Search: Posts Made By: al0x
20,172
Posted By radoulov
I'm still not sure, but it seems that you want to...
I'm still not sure, but it seems that you want to write something like this:

myvar=`echo "hello world" | awk -F "world" '{print $1}'`

I'm sure you'll get a better solution if you post more...
Forum: Android 01-03-2011
28,843
Posted By Neo
Android Scripting Environment: Shell Scripting and Android
I just upgraded to Android 2.2 from 2.1. The GPS issue that was troublesome in 2.1 seems to have been fixed. Some of web browsing seems faster, but it could just be my connection is better today...
1,260
Posted By ygemici
change your line to [ `pidof $i | sed...
change your line to
[ `pidof $i | sed '/^$/d'|wc -l` -gt 0 ] && echo "$i service already running..." >> $log || (/etc/init.d/$i start ; echo "$i restarted..." )>> $log
1,260
Posted By mirni
Look better in here: [ `pidof $i | wc -l`...
Look better in here:

[ `pidof $i | wc -l` -gt 0 ] || $( /etc/init.d/$i start && echo "$i restarted..." >> $log)
with the dollar sign and parentheses, you are posting the output of your command...
16,489
Posted By pludi
You're not missing a quote, but a closing bracket...
You're not missing a quote, but a closing bracket on line 8, with the first cat.
Forum: Linux 12-01-2010
10,098
Posted By Corona688
Depends entirely on what it's doing. But it...
Depends entirely on what it's doing. But it doesn't sound like it's booting the normal linux way, there'd be trickery necessary to get a bootable Linux system out of a FAT32 partition.

What files...
3,985
Posted By Corona688
Hm, it returns success in either case. Have to...
Hm, it returns success in either case. Have to check its error output instead.

TMP=`mktemp`
if wget -N http://server/file 2> "$TMP"
then
if grep -q "Not retrieving" "$TMP"
...
3,985
Posted By Corona688
HTTP doesn't have checksums, but it does have...
HTTP doesn't have checksums, but it does have timestamps.

Do your clients have wget?

$ wget -N localhost/~tyler/hugefile
--2010-11-09 10:39:01-- http://localhost/~tyler/hugefile
Resolving...
3,985
Posted By Corona688
Store an md5sum in a different file and have your...
Store an md5sum in a different file and have your clients check that, but it sounds like you already guessed that and are looking for something automatic. FTP doesn't have that, no. FTP is very...
Showing results 1 to 9 of 9

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