0
votes
0answers
8 views
Run script as root under Busybox?
I have written a shell script that has to be run as root under Busybox. My first thought was to add the script to /etc/busybox.conf like this:
/sbin/my_script.sh = ssx root.root
But this only works ...
0
votes
0answers
5 views
error with xmail server
what is the problem with xmail server that make this message
cat: /etc/xmail/default_domain: No such file or directory
when sending email
2
votes
1answer
14 views
Deciding on a font, and determining the proper notation
I have an X11 program that allows you to set a font. It apparently accepts the 'standard' X Logical Font Description. This notation is fairly obscure, and while the document I linked to mentions it, ...
1
vote
1answer
14 views
Deleting files by age
Is there a command to delete all the files in a directory that haven't been modified in N days? I need to clean up some old logs.
0
votes
0answers
5 views
Interpreting output from iostat
I'm facing really slow speed serving just static files from 300 to 900 MB on a 1 GBps dedicated line.
This is the output from iostat but I don't know if this is ok or not.
Linux ...
1
vote
2answers
18 views
How can I set these permissions?
I was so sure of myself, I thought I knew about permissions. Until someone asked me this.
Having these users:
User Group
---- -----
juan juan
pedro pedro
maria maria
jose jose
miguel ...
0
votes
0answers
7 views
How to install TortoiseHG on RHEL 5.3 from source?
I have been trying to install TortoiseHG with the yum command on my RedHat system and have been struggling. I thought perhaps I should install it from the source. I used the instructions here and ...
1
vote
1answer
27 views
Email sent from web server using PHP does not arrive
I am trying to send email via my web server using PHP but for some reason the email never arrives. According to PHP the email was sucessfully sent but I never receive the email. I know its not a spam ...
1
vote
1answer
9 views
How to fix “ambiguous package name 'libglib2.0-0'” problem?
Using Ubuntu 11.10 64 bit, whenever I try apt-get [anything] or dpkg [anything] I get this error:
dpkg: error: el fichero de registros de disparadores menciona un
nombre de paquete ilegal ...
2
votes
3answers
29 views
Regarding separate a single file into multiple files according to line separation
Currently, I have a plain text file, A, such as
lowest priority
very high significance.
outstanding
very novel
In this file, every line contains a sentence. I want to separate this file into ...
2
votes
1answer
27 views
Difference between bootable and non-bootable partitions
What is the difference between a bootable and non-bootable partition? I know that a user cannot boot a system from a partition marked non-bootable and can from one marked bootable.
I want to know ...
2
votes
1answer
16 views
How do I detect whether changes in nano were discarded or saved?
I am currently writing a small setup script for a Linux application that needs the user to edit a configuration file before the application is started. I've chosen to make the script simply open the ...
1
vote
1answer
22 views
How to prevent the auto creation of the “Desktop” folder?
When I upload files via Firefox, the Open File dialog appears and the Desktop folder is automatically created. I am using Arch Linux with Xmonad and quite frankly I don't need a Desktop folder inside ...
3
votes
1answer
29 views
match files based on an md5 using find
I have a bunch js and css files in a directory. Some of them have been given a name based on an md5() of their content (looks like f10521a21bb013cb81e0909809818ad6.js). I'd like to match these files ...
3
votes
2answers
87 views
Why do I get error 255 when returning -1
I'm new into C++ programming and I have a very basic question.
I've noticed that when I return -1 in C++ program and then check the exit status, I get 255. Why is that?
The code is the most basic:
...