LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Blogs > anky.parmar1786
User Name
Password

Notices

Uncategorized Entries with no category
Old

How to make new folder through scripting??

Posted 04-27-2013 at 04:28 PM by anky.parmar1786

Hi All,

I have one question.. I have two directories.. one is /logs and other is /logs_backup.
There are 5 folders in /logs directory with the name Jan,Feb,Mar,Apr and May .. now what I want to do is
that I want to move these folders log(Jan,Feb,Mar,Apr and May) in /logs_backup directory.
I want a script in which when script will run,it will check in /logs_backup directory that whether is Jan folder is there or not? If it is there then ok and if it is not there...
LQ Newbie
Posted in Uncategorized
Views 1265 Comments 1 anky.parmar1786 is offline
Old

How to tar files through scripting?

Posted 05-12-2012 at 10: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 384 Comments 0 anky.parmar1786 is offline
Old

VPN Server

Posted 02-10-2011 at 08:28 AM by anky.parmar1786

Hi All

Is anybody help me out to configure the VPN server step by step...
or can anybody give me the site url on which it defines in easiest way how to configure it on Centos 5.4?

Thanks & Regards
Ankit Parmar
LQ Newbie
Posted in Uncategorized
Views 373 Comments 0 anky.parmar1786 is offline
Old

unable to make pxe boot through tftp

Posted 02-10-2011 at 08:22 AM by anky.parmar1786

Hi All

Once again I am facing problem to make pxe boot server with the help of tftp.. What I am trying to do is that I have mentioned below but it gives error:- "COULDN'T FIND THE KERNEL IMAGE"

* yum install tftp-server

* vi /etc/xinetd.d/tftp and change disable to 'no'

disable = no

* restart xinetd

service xinetd restart

* Install syslinux

yum install syslinux
...
LQ Newbie
Posted in Uncategorized
Views 2316 Comments 1 anky.parmar1786 is offline

  



All times are GMT -5. The time now is 06:26 AM.

Main Menu

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