Mass Rename Files
Jan 24, 2007to rename about 1100 files from SSH. The filenames contain (, ), and spaces, and I'd like to eliminate all of those characters. Can this be done with a simple command?
View 0 Repliesto rename about 1100 files from SSH. The filenames contain (, ), and spaces, and I'd like to eliminate all of those characters. Can this be done with a simple command?
View 0 RepliesTo automate a task, I need to create a shell script that will allow me to copy the folder blank/ to a new location and rename it to news/, same for the files inside that directory. And, if possible, change the content of one of those files as well.
For example, I need to copy this:
Code:
blank/
templates/
frontend/
index.html
Blank.php
...to a new folder and rename it to this:
Code:
news/
templates/
frontend/
index.html
News.php
What command do I use to mass extract a bunch of .tar files? I have a directory with about 60+ .tar files that I want to extract at the same time instead of doing it one by one.
View 4 Replies View RelatedI have a list of files in a folder like this:
/home/files/[url]
And I need to rename them to this format:
awstats092008.[url]
I've played around with sed, rename, and a bunch of others.. but I just can't figure this out.
server is CentOS 5.2
Is it possible to rename a domain ? hwo to do it ? I have plesk panel 11.5.30 configured for ISP
View 2 Replies View RelatedI would like to do the following. It doesn't have to be in this particular order, as long as the results are the same.
delete <cpanelusername>-<date>.tar.gz (created from last pkgacct run)
/scripts/pkgacct <cpanelusername>
rename output to something like <cpanelusername>-<date>.tar.gz
scp -pr /home/backup-<cpanelusername>-<date>.tar.gz root@othervps:/backups
I don't know if all of that can be done in a single cron separated by | or if it has to be in a script file the cron calls. I have never made/called a script before, so I need some help doing that.
When you do the pkgacct, can you specify the name, so you can built it with the date/time?
I'm trying to rename a domain in my panel and keep getting the following error:
Code:
Error: Execute websrvmng --rename-vhost "--old-name=domainb.com" "--new-name=domaina.com" failed with error code 1: External component has thrown an exception. In IIS7NativeProvider module Exception type: System.Runtime.InteropServices.SEHException at _CxxThrowException(Void* , _s__ThrowInfo* ) at IIS7ApplicationPools.copy(IIS7ApplicationPools* , auto_ptr<IApplicationPool>* , basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> >* srcName, basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> >* dstName)
Running
Code:
websrvmng --rename-vhost "--old-name=domainb.com" "--new-name=domaina.com"
In the Windows command line gives the following error:
Code:
Cannot find domain by name 'domaina.com'
Haven't found many leads on the web as to what this might be.
I have a VPS and about 140 accounts on it. I'm moving to a new host, but the thought of having to move all these accounts manually really makes me lazy I have to go into each account and go to backup -> backup to remote FTP.
Is there any way I can mass backup all of my accounts, or all accounts I select, to a specified FTP server?
Running freebsd with pf, and was wondering if there's anything like www.fixingtheweb.info for pf instead of IP tables? Otherwise it'll be a long day
View 1 Replies View RelatedI have client who wants to send out a few hundred thousand emails once every week. They are into educational stuff and have these many subscribers.
I was wondering if there is any hosting available for this kind of mailing. I have the script buts its just my current host has limited mailing to 50 mails per shot and maximum 500/hour
I would have gone for dedicated or vps but I am completely ignorant about it.
Is there a way out for me?
i need any thing to prevent mass download
my server is cost a huge bandwidht monthly . because mass downloading?
im currently in the process of movinmg most of my clients MySQL dbs to a dedicated mysql server (direct private lan link so speed/bw is not an issue) but i have ~2900 .sql files i need to restore, anyone got any idea how to automate this restore,
the sql files were created suing mysqldump on old server so have all the appropriate create database entries etc but id rather not have to do each file by hand or ill be here for months
I'm trying to send a mass mailing to around 50.000 people, as of now, about 70% returns in the exim mail queue with the following header at the top.
Code:
mailnull 47 12
<bounce@domain.com>
1244115246 0
-helo_name www.example.com
-host_address 222.21.147.57.38441 (fake)
-host_auth fixed_login
-interface_address 222.21.147.57.25 (fake)
-received_protocol esmtpa
-body_linecount 219
-max_received_linelength 108
-auth_id info@domain.com
-deliver_firsttime
-host_lookup_failed
XX
1
The problem is in the host_lookup_failed part.
If you know you can help, please let me know, and I'll send you the real ip addresses and domains, I don't want this to show up publicy.
Every month or two, we like to send our members a newsletter-type email which just informs them about what's happening over in our website and community. We have over 350,000 accounts registered, so there's quite a few emails to be sent each time.
I'm currently using cPanel with Exim and SwiftMailer to send the members an email through PHP. The way I do it currently is import all the email addresses to a separate table then email 500-1000 at a time. This is controlled by a Cron job.
I'm finding Exim to be extremely slow and the queue has built up to 190,000 as I type this (the email process started last week).
My question is this. What's the best software, whether it be a program or a script of some form, to send an email to such amount of users? Or if anyone knows any way to 'tweak' Exim to handle such mass-emails.
I'm hosting with CoreNetworks (very happy with them) on a Windows platform. One of my clients has a 500-person email list. When they try to send using Outlook, the get the following error:Sending and Receiving' reported error (0x800CCC0F) : 'The connection to the server was interrupted. If this problem continues, contact your server administrator or Internet service provider (ISP). The server responded:? 1 Too many bad commands, closing transmission channel'
They didn't have any problems with sending from the list before, when I was in a shared platform with AIT. Ideas as to what the issue could be? I've done some research but can't seem to figure it out.
building a mass storage server, but unsure whether it is better to go for most space per system, or most space per U.
Looking at making 2 storage servers sometime in the future, one more for performance (15k 300gb SAS drives) and another for more storage (bunch of 1TB SATA drives). Both would act as iSCSI targets and likely have multiple gigabit ethernet connections bonded together.
Some options I am looking at:
1) HP DL320s provides 12 drives in 2U, or 6 drives per U. Upgrade it to 512mb batter backed cache and it does RAID6. Probably the densest storage U.
2) Supermicro has a 3U chassis that does 16 drives, or 5 1/3 drives per U. Pair that with one of the newer Areca SAS controllers and up to 2gb onboard cache and it should scream.
3) Supermicro also has a 3U chassis with 15 drives... just 5 drives per U, though it is ~$200 cheaper than the 16 bay one. Probably a mute point, since either way, it is less storage per server and less storage per U.
4) Get a simple 1-2U case and use external JBOD enclosures. Could put in multiple RAID cards, hook it up to multiple 3U 16 bay enclosures, and really squeeze in a lot of storage per server.
Anyone else been in a similar boat? Overall, not looking for a real dense configuration, with like 10-20 servers of this config, so don't *need* to squeeze in more TB per U, but it is one way that I've been looking at it.
Perhaps, in a way torn between the pre-built DL320s and the white label Supermicro approach. DL320s is a nice packaged system, support, iLO, etc. Supermicro allows more space and likely more performance (Areca likely better than the HP SmartArray), but no iLO, no single source for support, etc.
I'm currently owning a website with little less than 500,000 users. Many of these users have been asking if I could send out updates about the site per email, like once per week or preferably once per day.
I'm not sure about the best way to do this. I did some reading and some people seem to suggest to get an extra dedicated server to send out the emails. Others say it's best to use a cloud service with SMTP relay, while I also saw suggestions to use a website like [url]
I have checked into mailchimp, and appearantly this whole thing will be very expensive if I want to send out email to so many users. I'm not an email marketeer and neither do I sell products, so the profit per user I would email is probably low. The primairy reason I want to send out updates is to keep my current memberbase happy, and to get some older inactive members to become active again. We had our site totally reworked recently, and it would be nice to let people know about that.
I also like to know if it's possible, in any service, to somehow unsubscribe users whos email addresses are no longer valid in an efficient way.
Some more facts:
- Those 500k users are 250k effective emails. The other people have never subscribed on registration, are blocked for misbehaviour on the site, or have unsubscribed at some point.
- As stated above, people have to subscribe upon registration. The checkbox for this is unchecked on default
- The oldest users in my database are 3 years old, so there is quite a chance emails might be no longer active.
- There are many scams in the industry I'm active in (survey panel). As a result, users are sceptical, and sometimes use alternate email addresses for registration. I believe that as a result of this there is a higher chance the email is nog longer in use than on other sites, although I have no stats of other websites to compare with.
- I once tried to send out email to 75k users on my current dedicated server. As a result, Yahoo deferred my emails (which caused trouble for the verification emails we send out upon registration). I contacted Yahoo and they whitelisted my server, but I don't feel like trying to send email from my current dedicated server again. Not to mention that the server had a lot of trouble sending out so many emails, the server load was really high while sending out all email.
One of our servers was incorrectly set up before migration occurred. Now the ns records are incorrect on many domains' zone files. Does anyone have or want to let me hire you to write a script to change all the ns records and that are currently ns1.something to dns1.something. It can't be for every domain on the server, just the ones pointing to the incorrect ns, as some of them are correct. Linux server.
View 7 Replies View RelatedI've not seen an answer for this mass 301 redirect issue specifically.. How to do this...
category/brand URLs:
redirect: /ID-some-brand (e.g. /43-religion-clothing or /26-ichiban) to: /some-brand (e.g. /religion-clothing or /ichiban)
Product URLs:
redirect: /some-category/ID-some-product-name.html (e.g. /mens-sweat-shirts/1543-ichiban-fairly-offensive-sweat-in-grey.html)
to: /some-product-name (e.g. /ichiban-fairly-offensive-sweat-in-grey)
We have 1,090 products and 60+ categories so some form of .htaccess trick would be amazing to know. What I could put in the .htaccess to accomplish this.
it's in my clients contract that they must use our email marketing software to send out mass emails.
we are running WHM with the clients website on a cpanel account.
is there a way for me to monitor the email traffic so i know if they send out emails to more than 50+ recipients at a time?
im aware that they are sending emails through their desktops using normal smtp accounts, so need a way to prevent this if it's possible.
Just Joined steadFast.net Hosting best Hosting so Far very happy with them , Fast and reliable but the disk space is small and i am not rich lol
anyway i am thinking to send mass email to my 4222 members is that a problem? i am hosted on a shared Hosting (bronze)
I'll have any problem with my bandwidth? will my site go down?
Has anyone pulled off a mass server move during the middle of the night? We have decided 350 E Cermak is where we want to be but are still working out the details of where we want to be in the building.
While the final details are being finished, I need to come up with some kind of plan to pull the move off with the least amount of downtime. Our current dc is about 4 miles away from 350 Cermak and we have approximately 50 servers to move. I plan on leaving a linux box around to redirect any traffic that is ignoring TTLs.
I was thinking the best thing to do would be label and remove all harddrives, then see if a moving company could put the servers on palettes, wrap them, and move them to 350 E Cermak. Not sure if a moving company would work in the middle of the night or not.
Courier services are pretty much out. Anytime we have had a courier service move anything not in a massive box with padding, it gets bent or broken.
It is not about sending SPAM.
I have broadband from cable company and they do not let me send mass email (over 100) at one time. I guess on top of that Web Hosting company (having my domain) has some limit to use smtp.
I want to send text email (not HTML). I do not want to use Email marketing companies (as many suffix their brand in message) and perhaps ripe good benefits via viral marketing at subscribers' cost.
Option - A
===========
I am thinking to use desktop (if technically feasible) and want to use mass smtp with VPS hosting company (if they are open), within their TOS though.
Can VPS somehow be used (for mass smtp) without relocating my domain to new VPS?
Would there still be an issue as I will be using Desktop and routing emails through cable's as cable's company's limit will still be enforced?
If answer is yes, I guess I am left with no choice but to use Web server based mailing solution.
Option - B
==========
In that case, I guess something like phplist needs to be used.
Then my web hosting company would still not be open to use their smtp (or might have set some limits on smtp), so presumabily some blending (using phplist on my hosting and mass smtp on VPS) can be tried.
Solution?
=========
Am I thinking correct? If not, please give me some pointers to bring me to right track.
Any recommendation about VPS who may be open to mass smtp.
I am purposely not mixing multi-threading yet. QMail is default email s/w with my hosting and I guess VPS might also have qmail.
How do I change mass database names in mysql?
I have hundred of database names with "$" in the name? How do I change all instances of "$" with "_"?
I have a website with a 70,000 user email subscriber database. we currently send all emails from a dedicated mail server sitting in our office. its very old, unreliable and our emails are constantly going to peoples junk.
i've looked into things like campaign monitor, which looks great, but our custom made email system is already in place and all we really need is a dedicated and safe smtp server to use for the actual sending of the mail.
i've looked at things like SMTP2go which i have used when overseas and works great, but i'm looking for something more designed for sending of mass mailouts, as well as the day-to-day emails sent from the site (signup confirmations, forgotten password reminders, etc)
any hosts that can provide the following:
PHP5.3 +
MySQL
CRON (to run daily/weekly scripts at a certain time)
Mass Email. The scripts will send emails to a number of users(between 10-100 at first, but may grow) and this will be done daily and weekly.
In the past, I've tended to go with SupaNames or FastHosts but looking at their solutions for this, it's not quite right for my requirements.