So, I will post my 'first' question here, being "Why does this forum keep tellling me that I never posted and may ask my first question now, when ideed I alrady posted?"
(Maybe this will count as first post now?)
I just registered, activated the account, logged out and back in and edited my profile. Then, I was taken to introduce myself. I wrote a message, clicked on "Preview Post" and it looks OK, so I clicked on "Submit New Thread". I get no errors. It just takes me back to the previous screen, my post is not there and it tells me that the system detects I have never posted anything. Why? I'm hoping this one message will go through.
Thanks in advance...
EDIT: Now I see how much of a newbie I am! A sign was telling me my message was to be checked by a moderator, but it flashed so short, that I couldn't finish reading it until now. There must be a few copies of my introduction pending. Sorry!
Hi all,
I must confess that I haven't posted for more than a year, although I have been reading the emails that your admin staff kindly sends me. I was just about to bother you with a question regarding installing and booting into Linux from a flash drive on laptop with no hard drive in it. However, I just discovered http://www.pendrivelinux.com/, so I'll post my questions there first, since they apparently specialize in this kind of installation. Of course, comments and suggestions here would also be welcome and appreciated.
Thank you,
Bob
Hi
Kindly refer to following post:
http://www.linuxforums.org/forum/pro...tml#post954718
Here, at post #4, solution given by "LSalab" worked for me. So I added it to startup applications in my cinnamon desktop. But the problem is that, it works only once after every login (when the battery gets lower than 10% so it informs me), and if I charge the battery and again it reaches that threshold point of 10%, the system does not inform me, which means that the startup script only executes once.
here is the script:
Code:
#!/bin/bash
while [[ `acpi | cut -d ' ' -f 4 | grep -Po '\d+'` -gt 10 ]]
do echo -ne "\r`acpi`"
sleep 5
done
notify-send -t 60000 'Low Battery' 'Battery charging of your system is below 10%. Kindly Plug charger. Thanks.'
echo ''
mplayer /usr/share/sounds/freedesktop/stereo/phone-outgoing-busy.oga -loop 0
So my question is that, how can I make this script recurring at every threshold level?
Regards
Currently taking my first linux course in college and am stuck on a project...details he https://aacc.instructure.com/courses...item_id=614603
So far this is the code I have come up with but get an error on the 42nd line where it says done. I am not an expert by any means but would like to not struggle and finish this project. Below is my code...any input welcome.
#!/bin/bash
#blinker
#creates a bi-stable process that displays ON and OFF
touch .running
clear
while [ -f .running ]
do
count=0
while [ -f .running ]
do
count=$((count+1))
if [ $count -gt 4 ]
then
break
fi
echo "Green"
sleep 4
done
count=0
while [ -f .running ]
do
count=$((count+1))
if [ $count -gt 4 ]
then
break
fi
echo "red"
sleep 4
count=0
while [ -f .running ]
do
count=$((count+1))
if [ $count -gt 2 ]
then
break
fi
echo "green"
sleep 2
count=0
while [ -f .running ]
do
done
done
Hello,
Just starting with Linux and I have a question about permissions. When I run ls on /bin/bash I get the following permissions output:
-rwxr-xr-x .......
Why are there 4 letters on the owner's permissions, namely the last "r" which I have put in bold? Since there are only 3 types - r, w and x, what's the point of the second "r" ?
Thanks
when i am running delay.awk file on AODV.tr and LAR.tr For AODV.tr , it is giving me the o/p value as some delay
but for LAR , its showing me the follwing error
gawk: e2edelay.awk:93: (FILENAME=larscen5.tr FNR=36516130) fatal: division by zero attempted
I was unable to recify the error. could you please help me.
thank you so much
this is the code of awk file which i am using for calculation of delay. kindly help
# http://205.196.121.184/fnufnnc17mwg/...c/e2edelay.awk
# http://mohittahiliani.blogspot.dk/20...s-for-ns2.html
# ===================================================================
# AWK Script for calculating:
# => Average End-to-End Delay.
# ===================================================================
BEGIN {
seqno = -1;
# droppedPackets = 0;
# receivedPackets = 0;
count = 0;
}
{
if($4 == "AGT" && $1 == "s" && seqno < $6) {
seqno = $6;
}
# else if(($4 == "AGT") && ($1 == "r")) {
# receivedPackets++;
# } else if ($1 == "D" && $7 == "tcp" && $8 > 512){
# droppedPackets++;
# }
#end-to-end delay
if($4 == "AGT" && $1 == "s") {
start_time[$6] = $2;
} else if(($7 == "cbr") && ($1 == "r")) {
end_time[$6] = $2;
} else if($1 == "D" && $7 == "cbr") {
end_time[$6] = -1;
}
}
END {
for(i=0; i<=seqno; i++) {
if(end_time[i] > 0) {
delay[i] = end_time[i] - start_time[i];
count++;
}
else
{
delay[i] = -1;
}
}
for(i=0; i<count; i++) {
if(delay[i] > 0) {
n_to_n_delay = n_to_n_delay + delay[i];
}
}
n_to_n_delay = n_to_n_delay/count;
print "\n";
# print "GeneratedPackets = " seqno+1;
# print "ReceivedPackets = " receivedPackets;
# print "Packet Delivery Ratio = " receivedPackets/(seqno+1)*100
#"%";
# print "Total Dropped Packets = " droppedPackets;
print "Average End-to-End Delay = " n_to_n_delay * 1000 " ms";
print "\n";
}
Looking at the /etc/shadow file, for some of the system services accounts there are "*" and for others "!!" in the password field.
Searching online I have only found that !=*, i.e. prevent use for log-in, but, if true, what is the actual difference? Why not use "*" on all of them? And why double exclamation point?
Sorry in advance, I first posted the question in the Software Forum, considering there were no replies I thought maybe it was a newb error.
So here goes..
HI everyone,
I am trying to find a way to ditch MS OS's, however, at the present time I Need MS Office, without using a VM, is there a piece of software that you would recommend I install that would enable me to keep my Linux OS (MInt-Mate), and install Office 2010+ (I know WIne works well with older Office versions).
Any and all ideas are greatly appreciated.
ps. Trial and error is fine, for that reason alone I have a laptop-labrat I Use.
Thanks again.
-Randy
Hi
I've just this minute joined the forum. A message suggested I post my first question so here it is:
I'm using Kubuntu. I know it's Ubuntu with KDE , but I'm just wondering what others think: which is better - ordinary Ubuntu or Kubuntu? I know I can try them out for myself, but I'm just wondering what the consensus of opinion is.
Hello
I have a text file which has blocks like
Code:
dir1/dir2/dir3/name_run_number1:
line1_run_number1_part1
line2_run_number1_part2
line3_run_number1_part3...
Each block is separated with a blank line and there is the ":" in the "header" of each one while each block carries the same "number1" after "run_" suffix
What I want to do is for each block, extract the "number1" as shown in the first line and then for the lines below count from 1-20 and give a message if a "partX" line is missing. Any bash or python would be fine
Thanks