Modify Conf File Using Shell Script/Command Line

Jan 17, 2006

i want to modify a conf file using commandline or a shell script. for eaxmple:

here is a line from my conf file:....

View 1 Replies


ADVERTISEMENT

Command Line To Detect Account/file With Video/music

Feb 20, 2007

What command line do you use to detect account storing music/video?

What command line do you search for file that is greater than 1MB?

View 1 Replies View Related

Zip From Command Line

Feb 15, 2009

Im trying to zip up an sqlite database backup.

I execute this command

Code:
zip ../d/db/backup.zip ../d/db/09-02-15.sqlite
backup.zip never appears. Instead, I get some random filename in the directory. Like ziOHokOw

If I try to zip a smaller file(last weeks backup) everything runs fine?

Code:
zip ../d/db/backup.zip ../d/db/09-02-08.sqlite
So the 134mb file zips fine, but the 200mb one seems like its failing and im left with some type of temporary file. I tried downloading the weird filename and unzipping it. It has partial info like directory structure, the filename but the actual file inside is corrupt.

View 1 Replies View Related

What Is The Command Line

May 10, 2008

What is the Command Line, hoe do I get to it, when I do how do I update Perl to 5.88

View 5 Replies View Related

Ip Adjustment Via Command Line

Feb 9, 2008

Got a centos / cpanel box. Had to change the block of IP's with an entirely new block of 8. Problem is I cannot access cpanel/whm due to this, but only via ssh. If I run the below, it shows the old IP's

/etc/init.d/ipaliases start

How do I replace the old block with the new? I've never done it via command line before.

View 1 Replies View Related

Ffmpeg :: Cannot Open Shared Object File: No Such File Or Directory In Unknown On Line 0

Mar 6, 2008

Rapidly growing error logs showing the same message

$ug-non-zts-20020429/ffmpeg.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20020429//usr/local/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg.so: cannot open shared object file: No such file or directory in Unknown on line 0

root@server [~]# ls /usr/local/lib/php/extensions/no-debug-non-zts-20020429
./ ../ eaccelerator.so*
root@server [~]# ls /usr/local/lib/php/extensions/no-debug-non-zts-20020429
./ ../ eaccelerator.so*

Using cpanel 11 / centos 4

View 1 Replies View Related

Tortoise SVN :: Install SVN By Command Line

Oct 3, 2009

how i can install SVN by command line on centos OS

View 1 Replies View Related

KVMoIP - Visual OR Command Line

Jul 9, 2008

is KVMoIP like Remote Desktop or is it just command lines?

View 5 Replies View Related

Command Line On Shared Hosting

Sep 25, 2008

I have been looking around for a new shared host, I am currently with GoDaddy =( And it would be helpful to have command line access for some things I am trying to do.

Particularly with Zend Gdata API (which GoDaddy has trouble with anyway) Is this reasonable to ask for? I also need at least 150GB/month bandwidth for some relatively high quality streaming video.

View 13 Replies View Related

Website Backup Over Command Line

Nov 7, 2008

We have a dedicated server, with chroot access enabled.

We are wanting to backup each site on this server, as well as all mysql dbs on a weekly basis.

Is it possible for us to run a cron job to do this? If so, what commands would we want to use?

We have a local FTP server here, so would like to ftp these backups this machine.

I know it all sounds a little vague, but I just need to know where to get started.

View 3 Replies View Related

Live Traffic View By VPS (or IP) Via Command Line

Nov 30, 2008

Back in the day, there was a commandline version of 'ntop' allowing a view of live traffic stats in the format of 'top'.

Does a similar tool exist today effectively allowing us to figure our which VPS or IP address is under DDoS attack?

The only way I could fix this was via KVM access to netstat -an | grep etc... Not too

View 7 Replies View Related

BackupPC Restoring Files Without GUI Or Command Line

Mar 6, 2007

I got our server staff to install BackupPC on our dedicated server and run daily backups. All is well (from what I can tell) but i've come to a point where I want to actually use an archived file.

So I jump into my ftp client, navigate to the backup folder, and download the file. The problem is, the file reads as jibberish. I'm assuming that BackupPC has compressed it.

So the question is two-fold:
1. How do I decompress it on windows (command line stuff is well beyond me)

2. Is there any browser/windows apps that I can use to manage the backups?

View 1 Replies View Related

Mysql Access Host Via Command Line Or Sql Query

Apr 30, 2009

how to add a mysql access host by command line? or or how to add a mysql access host through an sql query?

View 3 Replies View Related

How To Detect Raid Harddisk Specs From Command Line

Feb 22, 2008

how can i remotly( SSH) figure out what kind of raid controller is on my system?!
and how many harddisks my system has and what size?!

I am working on Linux( Centos4)

if i do
#df -h
then i get 146 G

so if my system has raid1, does it mean that the harddisk is 2 X 146 G?
or i should actually see it as 146 / 2?

View 5 Replies View Related

Ubuntu: Boot Into Command Line Skipping Desktop

Aug 27, 2007

Everytime it boot up, desktop gdm will be loaded. I need to go in straight to command line during boot up with some sort of shortcut key.

View 2 Replies View Related

Granting MySQL Command Line Permissions To A User

Sep 3, 2007

Is there any safe way to grant command line permissions to a user/specific account? One that only allows them access to databases on their account.

The problem is that this user intermittently runs queries that cause their database to hang (including PHPMyAdmin, so they can't view the processlist through there), and I have to manually kill that process, because they can't.

Server is 2.4.21 with MySQL 4.0.27, admin is cPanel WHM.

View 7 Replies View Related

Plesk 12.x / Linux :: Command Line CLI DNS Template Changes Warning

Jul 23, 2015

I'm using this script as a cron to generate DKIM keys for the domains I have. It's an easy script. And it does it's job just OK. I have the necessary software installed and configured.

The way it works is:

The script check if the domain in queue has a record for it. If it doesn't, OpenDKIM generates a one time DKIM record for mail._domainkey that I am entering to my dns records for all the domains I have.

After creating the DKIM record, it checks and deletes mail._domainkey records if there's any. Then adds the generated DKIM to plesk dns zones and disables/enables greylisting to create the appropriate dns entry.

If it does have a DKIM recors on the hdd already, then it removes

mail._domainkey​and
TXT o=-​entries.

After that it basically adds the already generated DKIM record and it disables/enables the greylisting for each domain in order to recreate "TXT o=-"

Up till here, it works fine. I can see these entries when I check the DNS Settings. They are there.

But whenever I run this script either via cron or manually, I get an error message on my panel: (You can check the screenshot as well)

Code:

Warning: The DNS zone was modified. If you would like to apply DNS template changes to this zone, either click the 'Apply DNS Template Changes' button on this page or choose the 'Apply the changes to all zones' option in Server Administration Panel > Tools & Settings > DNS Template Settings > Apply DNS Template Changes.

And unless I manually click "Apply DNS Template Changes" for EVERY SITE it doesn't go away.

So, I was wondering, is there a way to scriptize that command? Or how to prevent it?

This is the command I use to generate DKIM and add it to Plesk database, also if any such record exists, delete and re-write it:

Code:

#!/bin/sh
ADMIN_PASS=`cat /etc/psa/.psa.shadow`
MYSQL_BIN_D=`grep MYSQL_BIN_D /etc/psa/psa.conf | awk '{print $2}'`
mysql="${MYSQL_BIN_D}/mysql -N -uadmin -p${ADMIN_PASS} psa"

query="select name from domains;"
domains=`echo $query | $mysql `
for i in ${domains}; do
echo "Processing $i"

[Code] ....

View 4 Replies View Related

Plesk 12.x / Linux :: CLI - Scheduled Backup From Command Line

Apr 9, 2015

I'm looking to set up a schedulled backup from command line.

I haven't found the correct command, could you tell me if it's possible and how ?

Additional question: I'm looking too, to set for the server the max number backup file to save, do you know how to do it from cli ?

View 8 Replies View Related

Plesk 12.x / Linux :: Remove Backup Via Command Line?

Jan 17, 2015

Is there a command line way of removing Plesk backups?

I'm looking for the command line equivalent of these steps: Log into Plesk as the server admin > "Tools & Settings" > "Tools & Resources" > "Backup Manager" > check a backup and click "Remove".

We have a script that copies the contents of "/var/lib/psa/dumps/" to Amazon S3 for long-term storage of backups. It runs nightly after a scheduled Plesk backup. Once that script completes successfully, we'd like to delete the Plesk backup to free up disk space. We have Plesk's "Maximum number of backups in the repository" set to 1.

But Plesk appears to keep that backup around while creating a new backup (which makes some sense). This is causing us trouble because the server does not have enough disk space for two backups. As a temporary solution, I'm manually deleting the backup each day through the Plesk admin, but would like to automate it if possible. If automation is overly complex/risky, we'll look at upping our disk space instead.

View 4 Replies View Related

Plesk 12.x / Linux :: Command Line Mail In Chroot?

Feb 23, 2015

Is there any way for a client to use command line mail in a script. Client has ssh access via chromed environment.

Wants their script to be able to send an email on completion.

plesk 12 on Centos6.6

View 6 Replies View Related

Where Do I Find The Shell Command Feature

Jun 9, 2008

i am trying hard to understand how everything works, i just finished installing my CentOS 5.2 OS and need to install + Apache + MySQL + PHP/Perl.

Also i downloaded the apache file and tried to insatll it but it has to be done by giving a command via Bash shell for wht i understood, so i downloaded bash shell file. How and where do i enter the commands for installing these applications?

View 3 Replies View Related

Clear A Specific Email Account In Cpanel Or A Command Line Way

Jan 20, 2008

I just recently logged into my user email account "the one which was created by the name of the user of the account" and found it had 8000 emails but none are showing up in either horde or squirrelmail. How can i delete all these emails without deleting the other bla@domain.com emails? Is there a way just to clear a specific email account in cpanel or a command line way. I think if i just delete the mail folder it would kill all the emails of that account and I just want to 'reset' that one.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved