Search Results

Search: Posts Made By: xxxx
31,270
Posted By xxxx
Thanks all. I scripted it in this way: ...
Thanks all.

I scripted it in this way:


echo "enter expiry in days (Ex: 30 60 90 120)"
read expiry
future=$(date --date="$expiry days" +"%d/%m/%Y")


Then for the email:

...
4,041
Posted By xxxx
Script to input encrpyted password into htdigest (Apache)
Hey guys,

This is my situation.

I'm using the script to add a user account, however, i want the same details copied into the htdigest password list. the format is...
31,270
Posted By xxxx
Thank you :)
Thank you :)
31,270
Posted By xxxx
How to display a date, 30 days from the current date?
Well guys,

I know the right syntax for displaying the current date is $(date). However, I am planning to send emails to some customers which displays their subscription date, and then the expiry....
3,496
Posted By xxxx
Can't believe i couldn't see that. Thank...
Can't believe i couldn't see that.

Thank you very much. I'm new to shell scripting and this has upped my understanding.

I know the best way is to read the manual but my brain doesn't work...
3,496
Posted By xxxx
Thank you. This works in the terminal perfectly....
Thank you. This works in the terminal perfectly. However, it doesn't seem to work in a bash script. Been messing around with all sorts of way for hours now.

An example :

#!/bin/bash
# Script...
1,380
Posted By xxxx
Thank you tukuyomi. This solved my issue. :b:
Thank you tukuyomi.

This solved my issue. :b:
1,380
Posted By xxxx
how do i prevent $ from being commented out if no value is present? (Bash Script)
Hey guys,

I want to paste a code in a .php file via a bash script. I am on ubuntu 10.04.

The problem is if the values for $ aren't present, then all of them would be removed by the script.
...
3,496
Posted By xxxx
Great. This works well. Thank you. What...
Great. This works well. Thank you.

What about, if i want to replace SCGIMount /RPC3 127.0.0.1:5001 with SCGIMount /RPC2 127.0.0.1:5000 ?
3,496
Posted By xxxx
Allright. Operating System : ubuntu server...
Allright.

Operating System : ubuntu server 10.04
Shell : Bash

Objective : To add a line at the end of another line.

Example:

I want to add a SCGI Mount Point in apache2.conf. Everynew...
3,496
Posted By xxxx
How to paste lines below certain text (Script)
Hello Guys,

I know the command echo " " > filenamehere ; would erase everything in the document. Can the same be done, to paste words below certain text?

For example, lets say i want to paste...
Showing results 1 to 11 of 11

 
All times are GMT -4. The time now is 04:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy