The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
giving input to a python wch has been called frm shell script....urgent vini Shell Programming and Scripting 1 07-06-2009 04:18 AM
Hi Python and shell script,the script hangs nathgopi214 Shell Programming and Scripting 0 03-19-2008 06:05 AM
Shell Script backup a file ? anything Shell Programming and Scripting 1 02-03-2008 07:45 AM
Shell Script for RMAN Backup shaan_dmp Shell Programming and Scripting 1 05-08-2007 05:56 AM
Help with a backup shell script Dingosatemypant UNIX for Dummies Questions & Answers 1 11-04-2005 07:45 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 4 Weeks Ago
jzacsh jzacsh is offline
Registered User
  
 

Join Date: Apr 2009
Posts: 29
Question Python converted from /bin/sh shell - backup script.

Hello, I have a shell script I wrote in /bin/sh to backup my web sever. I am now on a host (someone reselling rackspace server hosting to me) and when setting up cron, it actually has a dropdown list of "command languages" that you have to choose from.

my options are:
  • ruby
  • php
  • perl
  • python
  • http

mine is written in /bin/sh, so now I have to rewrite it in a different language. i recently started learning python, but got cut-off (w/a c++ class) so I never learned about writing/reading files, folders etc. (critical stuff, atleast for my script).

Could someone help me convert this to python, just pick any lines, convert it, and leave it here... i'm sure eventually - after enough ppl - it'll be converted. then everyone can benefit


the original is attached.

I would at least convert some of it myself into python, but this would be the *first* thing i'd be writing in python and I honestly don't know where to start.

any help would be a great favor, thanks.
Attached Files
File Type: sh python_backup.sh (5.9 KB, 21 views)
Reply

Bookmarks

Tags
backup, conversion, python, script, shell

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:59 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0