Find all files that do not have the sticky bit set for which the file is executable on my FreeBSD Server
location: linuxexchange.com - date: December 8, 2014
How do I get a list of only files (no directories) on my FreeBSD Server that do not have the sticky bit set and for which the file is executable?
How to delete files " That Do Not Exist " but they are there,
location: linuxquestions.com - date: May 2, 2012
I am trying to remove files that look very strange, and have no idea how they appeared, just noticed them today, they were not there. And never have seen such strange files before.
Any one can help at all? My system in Debian Squeeze 64 bit.
THis what they look like:
dir
\001@\270[\340 P-to-P
\001\2760\001\037\351\336\024\001\331i\001\241A\001\241\353:=\001 Public
Desktop repositories1.odt
Documents Templates
Downloads Videos
Music \001\023λ?\221g\001iY\001Hq\001\276Q\037\001{K\001
Pictures
Sockets working in openSUSE do not work in Debian?
location: linuxexchange.com - date: March 10, 2013
I have a C/C++ TCP client working in OpenSUSE but not in Debian.
I'm using nc -l 4242 for the server.
Then I connect with ./my_client 127.0.0.1 4242 on my Debian system (Sid) and it will fail when using the connect function.
Can you confirm if you have the same error too, using Debian or maybe another OS?
Where does the problem come from?
Here's the code:
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <iostream>
void do_server(int s)
{
write(s, "client connected\n", strlen("client connected\n"));
close(s);
}
int main(int ac, char **av)
{
struct protoent *pe;
struct sockaddr_in sin;
int s;
if (ac != 3)
{
std::cerr << "Usage: ./client ip port" << std::endl;
return EXIT_FAILURE;
}
pe = getprotobyname("TCP");
if ((s = socket(AF_INET, SOCK_STREAM, pe->p_proto)) == -1)
{
Permalinks do not work on Wordpress + centos7
location: linuxexchange.com - date: October 31, 2015
I have installed WordPress on my local machine(Centos 7). It worked well without pretty URL.
What I tried to get it work:
set Allowoverride All in /etc/httpd/conf/httpd.con under line and restarted the httpd service.
Created .htaccess file in WordPress directory with following line of code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /rakesh/index.php [L]
</IfModule>
Set permalinks to post name in WP backend settings > permalinks
As a result i get "Not Found
The requested URL /index.php was not found on this server."
I also tried to change permission on .htaccess file 777 and assigned to it Apache user by following command
sudo chown apache /var/www/html/wordpress/.htaccess
sudo chmod 777/var/www/html/wordpress/.htaccess
.
CentOS why the Google Apps Engine do not work? Even applying the last patch mentioned in there fix
location:
linuxexchange.com - date:
July 1, 2013
Google Apps Engine was working in my CentOS there was no changes made, but suddently stop working since yesterday. then i followed the patch for Google Apps Engine but still its not starting up. how do resolve it?
[
[email protected] tmp]# uname -a
Linux ip-10-59-143-73 2.6.32-220.el6.x86_64 #1 SMP Wed Nov 9 08:03:13 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
According to Patch:
http://code.google.com/p/nose-gae/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Type%20Status%20Priority%20Stars%20Milestone%20Owner%20Summary&groupby=&sort=&id=61
http://code.google.com/p/googleappengine/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Type%20Component%20Status%20Stars%20Summary%20Language%20Priority%20Owner%20Log&groupby=&sort=&id=8459
Line 56/57 is changed, like the patch but still problem:
55 py_file = __file__.replace('.pyc', '.py')
56 #dir_paths = [os.path.abspath(os.path.dirname(os.path.realpath(py_file))),
57
Sun Studio linking gcc libs: exceptions do not work
location: linuxexchange.com - date: December 17, 2014
I need to build an application with Sun Studio. This application uses a shared library which can only be build with Gnu C++. The shared lib has a C Interface, so that the code is callable by the Sun Compiler (this is to avoid name mangling issues, see also this question).
Everything besides exception handling works fine. When an exception is thrown in the shared library, the program segfaults. This happens only when the main program is compiled using the Sun Studio Compiler. Compiling the minimal example below with the Gnu C++ compiler, the program works fine and the shared lib detects the exception.
Plan A: link dynamically Here is an illustration of the setup:
GCC SOLARIS STUDIO
shared
c_layer.so <----- application
(no exceptions) (uses exceptions sol studio)
|
| use flag -static -static-libstdc++ -static-lib-gcc
v
gcc_only_lib.so
libstdc++.so
(uses gcc exceptions)
Result: segmentation violation once an excepti
Download files with download manager from websites that do not accept download managers
location: linuxexchange.com - date: August 5, 2014
I am trying to download Java JDK-7 from http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html .
However, due to my slow internet connection, the download fails randomly before the download gets completed. To fix this problem, I tried to download it with a Download Manager, but it seems that www.oracle.com does not allow download managers to download from it.
Do you have any idea as how I can download from this website or similar websites with download manager?
How to generate random polygons in Python that do not have bow ties (intersections) [closed]
location: linuxexchange.com - date: January 1, 1970
How can you generate polygones with a random number of sides that don't have bow ties/intersections in Python.
options for time in the command line do not work
location:
ubuntuforums.com - date:
March 30, 2007
Hi all,
This question is not directly related to programming, but i think it still fits here somehow:
Time seems to think that the options are the actual command, but i could not figure out how to tell time that they are not. Man just says that they should be placed before the command.
Code:
[email protected]:/tmp$ time -o
bash: -o: command not found
real 0m0.001s
user 0m0.000s
sys 0m0.000s
[email protected]:/tmp$ time -o /dev/stdout ls
bash: -o: command not found
real 0m0.001s
user 0m0.000s
sys 0m0.000s
[email protected]:/tmp$ time -h
bash: -h: command not found
real 0m0.001s
user 0m0.000s
sys 0m0.004s
[email protected]:/tmp$
Negative matching using grep (match lines that do not contain foo)
location: linuxexchange.com - date: October 24, 2015
I have been trying to work out the syntax for this command:
grep ! error_log | find /home/foo/public_html/ -mmin -60
or
grep '[^error_log]' | find /home/baumerf/public_html/ -mmin -60
I need to see all files that have been modified except for those named error_log.
I've read about it here, but only found one not-regex pattern.
please wait...
Page: 1 2 3 4 5 6 7 8 9 10