LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices



Old

How to tar files through scripting?

Posted 05-12-2012 at 11:02 AM by anky.parmar1786

I am newbie in scripting. Made a script but not executing properly. I want to take tar backup of files of first 15 days of the month that is 1st to 15th May. Files are in this format -->> 01May2012 to 15May2012

The script is given below.. Please help me to make this correct

today=`date '+%d%B%Y' -d '-11days'`
cd /opt/Server.Log_11Ocg01
tar -cvf backups1to11.tar /opt/Server.Log_11Ocg01/$today

Thanks
Ankit
LQ Newbie
Posted in Uncategorized
Views 428 Comments 0 anky.parmar1786 is offline
Old

Old SUSE Linux in VBox

Posted 05-11-2012 at 09:25 PM by wagscat123
Updated 05-11-2012 at 09:27 PM by wagscat123

I've ran and test SUSE 7.1 and 7.3 and later in VirtualBox. Here's some notes about each
-2001-
7.1 - Offers KDE 1.1 and 2.0 and Kernel 2.2/2.4. GNOME 1.2. Only 640x480 with 16 colors with XFree86 4. Includes as both Sax1 and SaX2 and Yast1 and YaST2. You may have to fight the sound server, but it works well once you have it fired up. This is the only one older than 9.2 I installed from an Install CD instead of an FTP server.
7.3 - KDE 2.2 and GNOME 1.4. Same video resolution and...
Member
Posted in Uncategorized
Views 898 Comments 0 wagscat123 is offline
Old

Misadventures In Computer Mad Science

Posted 05-11-2012 at 07:25 AM by rainbowsally
Updated 05-11-2012 at 07:29 AM by rainbowsally

Misadventures In Computer Mad Science

A friend of mine once told me that I'm the worst programmer he knew. And that's probably right. What do you expect from someone who's first programming love was Forth (ZX-81 and Co-Co).

So I always encourage folks to see what is going on and perhaps rework or clean up my messes if they can see a better way to do things.

Features:
  • Half a paragraph from the GPL v.3

See highlights near the bottom if you're...
Member
Posted in Uncategorized
Views 373 Comments 0 rainbowsally is offline
Old

Not able to understand error

Posted 05-11-2012 at 01:59 AM by priyankabade

when i am running scripts it is giving error
./dist_auar_pb.sh: line 156: [: /psoft/batch/fsdev/outbound/auar/atl/archive/AUARCPPSF05.120504: binary operator expected

for code
if [ -f $ARC_DIR/${EXTRACT}* ]
then
find $ARC_DIR/${EXTRACT}* -mtime +45 -exec rm {} \;
fi

but clone copy of this script working fine for same coding
y this??
plz tell me solution what should i do with this script why only this script...
LQ Newbie
Posted in Uncategorized
Views 2929 Comments 1 priyankabade is offline
Old

Yellow Split Pigeon Peas lentil with a twist AKA Sambar (in Hindi)

Posted 05-10-2012 at 12:15 AM by TheIndependentAquarius
Updated 12-02-2014 at 01:19 AM by TheIndependentAquarius

Notice: Spoon measurement : 6ml

Ingredients:
  • 1/2 cup Yellow Split Pigeon Peas lentil (AKA Toor dal in Hindi)
  • 3/4 spoon small yellow Mustard seeds (AKA Sarson in Hindi).
  • 1 and a half medium Green chillies (AKA Hari mirch in Hindi).
  • 1 spoon thick Tamarind syrup. (AKA Imli ka pani in Hindi). (No, this ingredient can NOT be skipped.)
  • 1 spoon Sambar masala. (No, this ingredient can NOT be skipped.)
  • 1/4 spoon Turmeric powder (AKA Haldi in Hindi).
  • 1 medium Onion.
  • 1 small Tomato.
  • 1/2
...
Senior Member
Posted in Recipes
Views 1440 Comments 1 TheIndependentAquarius is offline

  



All times are GMT -5. The time now is 10:47 AM.

Main Menu
Advertisement

Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration