02-08-2018
Many thanks
Chubler_XL It worked like a charm
I've been trying to solve it for many days and you solved it in no time, I'm speechless
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
I am trying to write a program that will automate interactive scripts that use 'pkgadd'. Easily enough I can use 'pkgask' and a response file for most of what I want to do, but unfortunately there are parts of some pkg installations that are configured to only take input from /dev/tty!!... (2 Replies)
Discussion started by: bookoo
2 Replies
2. Shell Programming and Scripting
Newbie question. I want to create a shell script that will only move/copy a file if it's determined that the eof string exists. This is to control files being uploaded via FTP. I don't want to move incomplete files, so my only thought is to check for eof, or compare file size every 15-30 seconds on... (12 Replies)
Discussion started by: mfilby
12 Replies
3. Shell Programming and Scripting
Hey ppl,
I've been asked to automate the build and test process for my team at office.we work on Linux and use Perforce for SCM. I've just joined this company and dont have much knowledge on unix scripts. Could someone tell me how to go about doing this? (0 Replies)
Discussion started by: laxmi
0 Replies
4. Linux
Hey ppl,
I've been asked to automate the build and test process for my team at office.we work on Linux and use Perforce for SCM. I've just joined this company and dont have much knowledge on unix scripts. Could someone tell me how to go about doing this?:confused: (8 Replies)
Discussion started by: laxmi
8 Replies
5. Shell Programming and Scripting
I have a script that will install software on all remote host. At the end of the script it starts the install.sh part and goes into a interactive mode asking Yes or No questions and prompting to add a username and password. My question is how can I script this so that these questions are... (7 Replies)
Discussion started by: soupbone38
7 Replies
6. Shell Programming and Scripting
Hi there,
I have to automate daily monitoring process and then the result of these process should be sent to a log file, then this log file should be mailed .
ps -ef | grep aa
In this atleast one process should run.
If the process is running it should mention Success in the log file... (3 Replies)
Discussion started by: NehaKrish
3 Replies
7. Shell Programming and Scripting
Hi Guru's,
I am trying to write a scripts that will automate my image provisoining process.
Scenario:
I have Linux Image Hosted on cloud which needs to be provisoned before it can be used. Currently we log onto the image through the putty on windows and connect to linux instance. I... (3 Replies)
Discussion started by: taqvia
3 Replies
8. UNIX for Advanced & Expert Users
I have written the below scripts .
ldap_pwd_prompt.ksh
#!/usr/bin/ksh
passwd -r ldap
interactive_pwd_change.exp
#!/usr/local/bin/expect
set timeout 10
set curpass
set newpass
spawn ./ldap_pwd_prompt.ksh
expect "Enter existing login password:"
send "$curpass\r"
expect "New... (6 Replies)
Discussion started by: dr46014
6 Replies
9. UNIX for Dummies Questions & Answers
Could any one tell me , how to start a thread here, i just searching for so long. sorry to post in irrelavent here
---------- Post updated at 08:19 AM ---------- Previous update was at 08:00 AM ----------
Hi,
I got a requirement to automate the process.
We have SLA files, there are... (1 Reply)
Discussion started by: afahmed
1 Replies
10. Shell Programming and Scripting
Hi
i had written one script,it sends email from terminal and mine script is as:
#!/bin/bash
SUBJECT="linux mail send attachment example"
BODY_FILE="/home/sreenivasa/Desktop/Testing.txt"
#ATTACHMENT_FILE="/home/sreenivasa/Desktop/Dataset.zip"... (23 Replies)
Discussion started by: rajnikant
23 Replies
LEARN ABOUT PHP
dateinterval
DATEINTERVAL(3) 1 DATEINTERVAL(3)
The DateInterval class
INTRODUCTION
Represents a date interval.
A date interval stores either a fixed amount of time (in years, months, days, hours etc) or a relative time string in the format that
DateTime's constructor supports.
CLASS SYNOPSIS
DateInterval
DateInterval
Properties
o public integer$y
o public integer$m
o public integer$d
o public integer$h
o public integer$i
o public integer$s
o public integer$invert
o public mixed$days
Methods
o public DateInterval::__construct (string $interval_spec)
o publicstatic DateInterval DateInterval::createFromDateString (string $time)
o public string DateInterval::format (string $format)
PROPERTIES
o $y
- Number of years.
o $m
- Number of months.
o $d
- Number of days.
o $h
- Number of hours.
o $i
- Number of minutes.
o $s
- Number of seconds.
o $invert
- Is 1 if the interval represents a negative time period and 0 otherwise. See DateInterval::format.
o $days
- If the DateInterval object was created by DateTime.diff(3), then this is the total number of days between the start and end
dates. Otherwise, $days will be FALSE. Before PHP 5.4.20/5.5.4 instead of FALSE you will receive -99999 upon accessing the prop-
erty.
PHP Documentation Group DATEINTERVAL(3)