I'm trying to write a sh coding to get the user to authenticate the password by comparing the user input to the first 32 characters of a file. So basically if the password is correct it would run TaskMenu.csh if its wrong the program would exit.
#!/bin/sh
clear
echo -e " Please Enter the Password to access the TaskMenu:"
read PW
if (! -...
hi,
I have been using linux for several years now, mostly ubuntu, but occasionally I encounter different unixes.
I don't really know how it works, I just know how to use it.
for example, I use package managers, I can adjust the path when I need to (i'm a coder), but usually have difficulty mounting things. except that it is somehow ve...
Hi,
I'm working on linux and am using the values in /proc//stat to log performance data. I am currently logging process user time and process system time. The problem that I have run into is that the code puts out correct values on ubuntu 10.04 but seems to be wrong under fedora 13.
Under fedora it looks like the counter for process us...
I've been using the pthread library for creating & joining threads in C.
When should I create a thread as detached, right from the outset? Does it offer any performance advantage vs. a joinable thread?
Is it legal to not do a pthread_join() on a joinable (by default) thread? Or should such a thread always use the detach() function befo...
I have a custom shell program in which I have included signal.h, unistd.h, and stdio.h. I was originally working on this in RedHat Enterprise (not sure exactly what version, but not too old) and I was able to use gcc on my program and it compiled fine and ran fine. Now I moved it over to Ubuntu and gcc is giving me some errors, the fir...
Hi,
I'm using the linux /proc//stat file to generate cpu usage information for an application. The issue that I have run into is that on Fedora 13 things seem to act strangely whlie on ubuntu 10.04 things behave as I expect them to.
Specifically:
on fedora the application logs more process system time by a ratio of 3:1
on ubuntu the ap...
Hi,
I was reading about the licensing of software and one question that came to my mind is that "how software detect the change in system time and block themselves if someone changes system time?". Since there is no other reference available(provided we don't have internet connection, otherwise we can use time servers as reference), how...
The following command is hanging
openssl req -key server.key -out server.csr
Any idea what the problem could be ?
...
Hi,
I am using quotactl package for quota management on my SUSE linux setup. How can I programatically find the blocksize in my program.
...
Hi All,
I'm a Visual Studio user and is used to breakpoints for debugging. Now I'm working in a linux environment and is using Eclipse as an IDE. I'm a newbie in linux and eclipse. I don't have any idea how to use gdb in eclipse. I tried using gdb in command line, but is not as easy as having a UI.
How do I use gdb in eclipse?
...
Can anyone recommend a good (preferably free) application or service to monitor the uptime of a server? And possibly send out an alert by email or sms when it goes down? Statistics are not really needed, it's just about knowing when a server goes down.
...
Possible Duplicate:
How do I receive a signal sent with sigqueue in a c program (on linux)?
Hi
How do I receive receive a signal sent with sigqueue in a c program (on linux)?
If just use kill to send a signal I just add a receiver with something like this
signal(SIGUSR1, sigusr1);
that point to a simple function like t...
Hi
How do I receive receive a signal sent with sigqueue in a c program (on linux)?
If just use kill to send a signal I just add a receiver with something like this
signal(SIGUSR1, sigusr1);
that point to a simple function like this:
void sigusr1()
{
signal(SIGUSR1,sigusr1);
printf("SIGUSR1 ....\n");
}
But if I send ...
I have tested my email server on allaboutspam.com to see why the emails are beeing considered spam by hotmail and gmail servers.
The results was amongst other faults, the BATV.
This is the complete result from allaboutspam.com on my BATV:
BATV is a mechanism wherein an outgoing Email server adds a tag to the Envelope From address of a...
installing python modules in GNU/Linux. Are there any good PDFs on installing modules? I would like to install some of these Python: 50 modules for all needs. I tried PIL http://effbot.org/downloads/Imaging-1.1.7.tar.gz but it did not work.
PS: what does community wiki mean?
...
% cat temp
$$$ hello1
$$ hello2
hello3
## hello4
hello5 $$$
% cat temp | grep "$$$"
Illegal variable name.
% cat temp | grep "\$\$\$"
Variable name must contain alphanumeric characters.
%
I want to grep for $$$ and I expect the result to be
% cat temp | grep <what should go here?>
$$$ hello1
hello5 $$$
%
To differentia...
I start application with -Xmx100G. The value returned by Runtime.maxMemory is 91G. Where does the remaining memory (9G) go?
I see from other posts that the API is not 100% accurate. I would like to know more about the difference.
I set the virtual memory size by
$ulimit -a 100000000.
The command fails.
$java -Xmx99g -version
Erro...
A friends of mine have a shared hosting with many sites hosted. There is ruby on rails, php, xslt/xml sites using mysql or postgress. Today one of the xslt sites displays this error:
Passenger error #2
An error occurred while trying to access '..../config/environment.rb': Cannot stat '..../config/environment.rb': Permission denied (13)
...
i want to delete something from each line of file for example :-
i have the following path in file :
/var/lib/svn/repos/b1me/products/payone/generic/code/core/db/fs-type /var/lib/svn/repos/b1me/products/payone/generic/code/fees/db/fs-type /var/lib/svn/repos/b1me/products/payone/generic/code/merchantserver/db/fs-type
i want to do ...
i have a file contain list of path now i want to execute command on each line example :-
file name : rawabdeh
command : command
file contain:-
path/no/1/
path/no/2/
path/no/3/
i want to do the following :
command path/no/1/
command path/no/2/
command path/no/3/
...