MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
Shell auto-bzip2 script
Thread Rating:
0 Vote(s) - 0 Average
1
2
3
4
5
Shell auto-bzip2 script
Posts: 98
Threads: 14
Joined: Nov 2008
Reputation:
1
09-02-2010, 12:07 PM
Hi everyone.
With what seems to be a sudden change in the way sv_downloadurl works, I find myself constantly having to upload files to my FastDL server now. Unfortuantely, I don't really have the time to go over there myself and bzip2 every one of them. (Or at least the ones I need to.)
So I created this little shell script, which will compress any file that isn't a .bz2 file into a .bz2.
My server is running pure-ftpd as the ftp server, so I can have this script run whenever a file is uploaded to my server. (The first argument is said file.) You'll have to figure out if your ftp server can do the same thing.
Also, if you don't want it to log anything, just remove the echo lines.
And here it is:
Code:
#! /bin/sh
if [ awk '/.bz2' $1 ]
then
echo "Weird, $1 is a bz2 file." >> /var/log/autocompress.log
else
bzip2 $1
echo "[$time] $1 has successfully been bzip'd." >> /var/log/autocompress.log
fi
Posts: 1,321
Threads: 85
Joined: Feb 2008
Reputation:
11
Moved to correct section.
~ trewq
Posts: 98
Threads: 14
Joined: Nov 2008
Reputation:
1
09-07-2010, 12:45 AM
(This post was last modified: 09-08-2010, 12:44 AM by trewq .)
(09-06-2010, 10:17 PM) Goilio Wrote: Moved to correct section.
Alright
Should I put a
tag in the thread title, or are there actually shell script interpreters for windows?
P.S. Why does that tag give you [1inux]
EDIT: Ah, Linux - only readme.
Posts: 1,321
Threads: 85
Joined: Feb 2008
Reputation:
11
(09-07-2010, 12:45 AM) tgp1994 Wrote: (09-06-2010, 10:17 PM) Goilio Wrote: Moved to correct section.
Alright Should I put a
tag in the thread title, or are there actually shell script interpreters for windows?
P.S. Why does that tag give you [1inux]
EDIT: Ah, Linux - only readme.
Na, it should be fine people should know what you are talking about otherwise they shouldn't be using it anyway.
~ trewq
Posts: 98
Threads: 14
Joined: Nov 2008
Reputation:
1
(09-08-2010, 12:45 AM) Goilio Wrote: Na, it should be fine people should know what you are talking about otherwise they shouldn't be using it anyway.
Heh, good point.
Users browsing this thread: 1 Guest(s)