Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
10 views

Django Dynamic File Name

A beginner Django guy here, I am looking to change my csv export file name to be dynamic hopefully naming the file with the date it was generated. My current code is response['Content-Disposition'] ...
0
votes
1answer
31 views

A uploaded file is 0 byte on Amazon S3 using django

I've symbolic linked a S3 directory on my EC2 server. But a uploaded file was 0 byte when I uploaded file. It was work well before (I used just web server directory) I don't have any idea dealing ...
0
votes
2answers
22 views

Read-only file system VPS SSH error

I have a VPS and today I noticed apache was not running, I got in SSH, the httpd status says: [root@adrimail ~]# service httpd status httpd dead but pid file exists Tried to restart it and I get ...
2
votes
1answer
42 views

What would cause a successful file transfer to have checksums not match?

After very large file transfers (this only happens with 10gig+ files) to a specific system, the receiving system would have a mismatched checksum of the file. The transfer seems to have happened ...
1
vote
1answer
25 views

MySQL file limit. Error Out of resources

I was benchmarking my database the other day using mysqlslap, and I ran into a "Out of resources when opening file '/tmp/somefile' (Errcode: 24)" error. I with a few click on google, I found a ...
1
vote
5answers
62 views

reverting file owner on CentOS

By mistake I ran a stupid command with a typo in it. I created a user "teamspeak" and I wanted to change file owner of current directory and it's sub directories, but by mistake I ran it in the "/". ...
2
votes
3answers
38 views

How to configure Web/FTP Server so that it downloads .sh files instead of showing its content

I have an FTP server (vsftpd) where there are many files of various types. Normally when you click on .tar.gz file in your browser, it starts downloading it. The problem is when user clicks on .sh ...
1
vote
0answers
28 views

If a file in a sites url has the name of a new domain but isn't where I'll point the domain, then what?

I will be giving a google apps web site the name of a new domain. The name currently points to a wordpress blog. My site can be found at https://sites.google.com/a/example.com/getreal/ It is the ...
0
votes
0answers
22 views

CentOS server for filesyncing [closed]

I am gonna be setting up a CentOS server for filesyncing and whatnot... is there a particular server (or kind of server) that I should buy which is better for these purposes?
1
vote
0answers
58 views

Least, secure and enough permissions for public_html and folders and files under public_html using SuPHP

I have a server with SuPHP and DirectAdmin. Many (but not ALL) of my users are running Joomla and Wordpress. Will it make a problem if I chmod public_html and sub-folders to 700? Will they NEED more ...
-2
votes
2answers
43 views

How can I read PHP file contents knowing only the link ? [closed]

I would like to read the contents of PHP file that is on located on some server: How can I do it ? The only thing I know is the link.
0
votes
2answers
34 views

Difference between default new file and new directory permissions

My umask is 0022 When I create directory using mkdir mydir the permissions I get are drwxr-xr-x However when I create file touch file the permissions I get are -rw-r--r-- Why do directories ...
4
votes
2answers
40 views

Fastest way to copy folder that contains many files via SSH

What is the best way to duplicate files on server via ssh? In my case: I'm talking about duplicating magento shop. (15000 files ~ 50MB) cp -a source destination Is taking hours... (in my case ...
1
vote
4answers
89 views

GREP show lines that contain this but not that

I would like to search for lines that contain "uploaded" but do not contain "09" Is there a way to do this with grep? (CentOS 5.6 if it matters).
0
votes
0answers
32 views

Can $_SERVER be faked in PHP? [migrated]

In PHP, Remote file inclusion can be conducted via input from $_GET, $_POST, $_COOKIE. I know it is improbable, but is it possible (by any chance) to fake the value come out of $_SERVER? I mean, can ...
1
vote
3answers
61 views

What is the fastest protocol for transferring small files between a high latency VPN?

I have ~70ms latency over my VPN connection and need to set up a backup/replication system. SMB is the worst, with throughput ~200KB/s. SCP gives me ~400KB/s. HTTP ~700KB/s. The links are symmetric ...
0
votes
1answer
60 views

cPanel File Manager Upload Not Working

I have recently tried to upload a file through cPanel File Manager and it is stuck at "Starting upload…". It doesn't show any percentage or any sign of starting. The file in question is only a few KB ...
0
votes
3answers
44 views

Batch File Syntax to get files from FTP server

I have trouble getting all files from an FTP Server. Usually I get all files using the command line/terminal with syntax the following syntax: get a.txt (very, very time wasting with login ...
0
votes
0answers
45 views

Rsync receives incremental file list, but doesn't transfer

I am trying to use Rsync to transfer files between two servers. Rsync builds the incremental file list, but doesn't transfer anything. I am using Ubuntu Server on both machines. I am using the ...
8
votes
5answers
485 views

How do I append a specific number of null bytes to a file?

I have a script that writes to a few files but I need them a specific size. So I'm wondering if there's a way of appending a specific number of null bytes from /dev/zero or however to a file?
0
votes
1answer
31 views

make vfs linux cache more inclined to keep inodes over actual file contents

I am using a centos 5 (2.6.18-194.el5). I need to be able to list files very quickly, in order for my rsync backup to be efficient. I don't really need to cache file contents, because file access ...
2
votes
2answers
46 views

What command should I use to find the file with the maximum size in a certain folder

What command should I use to find the file with the maximum size in a certain folder containing sub-directories which are several level deep. (in windows / linux)
1
vote
2answers
39 views

How To Setup A Centralized Repo To Distribute Files To Servers

Assume I have dozens, even hundreds of servers. What is the best method of pushing a central copy of files to a given directory to all servers? Example, we update a bash script, and put it on a ...
0
votes
2answers
43 views

Split large sql file by location of string OR start sql from last fail

I have a 15GB sql file which is a backup of a database. The problem I have is that half way through it, it failed. Luckily, I know which table to pick up from. Is there a way I can split this SQL ...
1
vote
2answers
79 views

Cisco router - edit or view file content in telnet

Is there a command for editing (or at least viewing) text file content (that is on flash card) ?
0
votes
1answer
94 views

tuning linux cache settings for inode caching

I am dealing with hundred million files in a filesystem (distributed among a lot of subdirectories), and I need to be able to list them very quickly, particularly in order to rsync them efficiently. ...
1
vote
0answers
56 views

Making libmagic/file detect .docx files

As seen elsewhere, docx, xlsx and pttx are ZIPs. When uploading them to my web application, file (via libmagic andpython-magic) detects them as being ZIP. I store the contents of the file as a blob ...
0
votes
4answers
74 views

How to copy a file with filename “+” and rename it?

I have a file named +13x18_DSC_0800.JPG on a linux server (Please don't ask me how it got there as I have no idea how it got there). I wish to rename it to 13x18_DSC_0800.JPG. However I have not ...
1
vote
1answer
114 views

What Are the Underlying Protocols/Standards a “Windows File Path” as Opposed to a NFS-Like Linux File Path? [closed]

This is probably a very poorly worded question, but the taxonomy of this question is what I'm looking for (so unfortunately at this point I can't help it). Here is my question. We don't walk around ...
1
vote
2answers
181 views

Windows DFS - file locking & replication?

I'm in a small company that has offices on the east and west coasts of America and also various people working from their homes. There are Windows Servers already in the offices. I think that ...
0
votes
2answers
93 views

Powershell Copy-Item fails silently

I have a PowerShell 2.0 script running on Windows Server 2008 R2 64bit that copies some Hyper-V .vhd files to another server as a 'backup solution'. The script gets a list of the .vhd's to copy then ...
0
votes
0answers
16 views

Writing files on mod_wsgi server

I have a Apache server with mod_wsgi installed. I wanted to write a file, run a program with this file as input and send the output file back. How can I get write permission on the server. What is ...
0
votes
1answer
27 views

Why is a directory being added again and again even after deletion in cPanel?

I keep on seeing a /blog/ directory but I don't want it so I deleted it and then a couple of days later it appeared again. I have repeated the same process over and over again although it always ...
2
votes
1answer
76 views

Do NOT log “File does not exist” errors. How to?

I have millions of "File does not exist" errors each month in logs of my flash game website. Flash files call those unexisted files. There are over 10000 different unexisted files in many variety of ...
1
vote
1answer
34 views

Shared block device file system (cluster file system without networking)

Is there any file system that can be mounted multiple times and supports concurrent file access for Linux? Basically I want something like a cluster file system but without the need to have a running ...
1
vote
3answers
45 views

effective file updates under Linux

In a high performance setting (many concurrent updates) under Linux, which is the most effective method to update a 30k file on disk: 1. simply update the respective file 2. delete the old file and ...
0
votes
1answer
105 views

How do I debug this FS error on a flash device?

I have console access to an embedded linux device. This device has flash memory part of which is partitioned as a FAT filesystem. Its running linux-2.6.31. However I am seeing these errors on the ...
0
votes
1answer
43 views

split big fasta file to smaller ones and retain their headers [closed]

Hello I have a a big fasta file containing smaller files each with a unique header example: Ssc10_2_8. I want a simple linux command to help me split the big fasta file into smaller files with ...
-1
votes
4answers
60 views

File and Database encryption

Just curious what do you guys use for file or database encryption? Any good programs out there or techniques employed for securing IT personal information? Main reason is the company I work for has ...
3
votes
3answers
107 views

How do I grep through binary files that look like text?

I have binary files that should be text (they're exported logs), but I can't open it with less (it looks ugly - it looks like a binary file). I found that I could open it with vi and I can cat it ...
2
votes
1answer
32 views

access data/files from outside network

We need our users (6000+) to be able to access files from their "home" and "shared" drives outside of our AD network. We have considered VPN or global connect solutions, but these are too complicated ...
0
votes
1answer
21 views

Linux: Disable permission to read for other users

I have a apache www folder, on Ubuntu machine. My current user 'joe' is the administrator. I added couple new users, but they can access www folder, how can I set permission to the folder, so a ...
1
vote
2answers
56 views

Cloud storage options for client downloads

I'm looking for a way to distribute sample files to clients. Requirement is that it's (relatively) simple to upload files, a link can be sent to a client who can download the file with a browser, the ...
-2
votes
1answer
42 views

Networking + File Sharing

my newly created normal users in domain can't access to the sharing and security on the right click menu in explorer , due the admins can , what's the bug ? plz help tnx Alot
-1
votes
1answer
50 views

NTFS: Restore deleted files by unflag delete state only (not copy files to another drive)

I am looking for a solution to restore deleted files on a NTFS Volume. No new files are written to the disk so all files has the condition "Excellent". But i have no storage room to copy the deleted ...
0
votes
1answer
55 views

Find files by creation date on Windows Server 2003

What's the easiest way to find all files on a server (Windows Server 2003) created on or before a certain date? (BTW, Windows Search has been and is currently disabled.)
0
votes
1answer
16 views

Test the proper execution and integrity of a backup

Every night my company generates automated backup all our servers on a backup server: -- backups folder ---- server1 backups folder ------ server1_backup_files.7z ------ server1_backup_db.7z ---- ...
1
vote
0answers
47 views

SQL Write table to text file

Is there a simple way to write the returned rows of a select statement to a file? I have found one example where you can write a string to a file in SQL ...
0
votes
1answer
50 views

Virtualizing a requested file

We have a PHP application that is encrypted with IonCube. This application calls an XML file stored in the same directory to get its configuration options. The license for the software allows us to ...
2
votes
2answers
56 views

File Synchronization

I am developing a website that has one production environment and DR environment(disaster recovering). In each environment i have three web servers and they need to have a shared storage to store some ...

1 2 3 4 5