hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Script to delete file
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

Script to delete file

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 02-09-2006, 12:37 PM
dayandj dayandj is offline
Newbie
 
Join Date: May 2005
Posts: 16

Script to delete file


Hi Guys,

I need to delete a file from my server. /var/spool/mail/httpd.

Unfortunately I can't Telnet to the server as the telnet files are corrupted! Is there any way to write a script, upload it via FTP as admin,set the permissions and run the script to delete the file above?

I really hope I can get some help here!

Regards,

Dayan

Reply With Quote


Sponsored Links
  #2  
Old 02-09-2006, 05:58 PM
BruceT BruceT is offline
Web Hosting Master
 
Join Date: Nov 2002
Location: Michigan
Posts: 695
The preferred alternative to telnet is SSH. If that's already installed, use it. You have to go in as admin first, then "su - root" to become root. SSH is preferable to telnet anyway, as it's encrypted. If SSH isn't already on the server, you can install it via PKG from www.solarspeed.net. Then use an SSH app like putty to connect.

__________________
http://www.lamphowto.com/ - LAMP and LAMP+SSL HowTo
http://www.cobaltfaqs.com/ - Cobalt FAQs and HowTos

Reply With Quote
  #3  
Old 02-09-2006, 08:37 PM
dayandj dayandj is offline
Newbie
 
Join Date: May 2005
Posts: 16
Hi Bruce,

Thanks!

Reply With Quote
Sponsored Links
Reply

Related posts from TheWhir.com
Title Type Date Posted
MegaUpload Designs Comeback Service Mega to Skirt Cloud Storage Liabilities Web Hosting News 2012-10-18 15:36:39
Whistleblower Site Cryptome Hacked, Infects PCs with Drive-By Exploits Web Hosting News 2012-02-14 14:48:24
Control Panel cPanel Launches New Apache Configuration Script Web Hosting News 2011-12-28 19:41:39
SingleOS Launches Fuscan Linux Cloud 2.0 Web Hosting News 2011-08-12 19:09:05
Web Host WebHostingBuzz Partners with Cloud Platform SMEStorage Web Hosting News 2011-06-01 18:10:25


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?