11-11-2013
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I wrote a script using 'expect' tool to change the password of my login id, every fortnight. And I had put it as a cron job.
The cron job is throwing an error
ld.so.1: /usr/local/bin/expect: fatal: libtcl8.3.so: open failed: No such file or directory
The environment variables are set... (4 Replies)
Discussion started by: Deepa
4 Replies
2. UNIX for Dummies Questions & Answers
Hello,
i am using expect to automate file transfers to and fro with a sftp server.
below is the script i am creating and executing in the main program.
but i am getting the following error:
the main program that creates and runs this script looks for words like "not found" in... (6 Replies)
Discussion started by: The Nemi
6 Replies
3. Shell Programming and Scripting
I'm calling an expect script via a ksh script in cron and it is failing. The script runs fine if i run it manually. Does anyone know if it is an issue with compatibilty and if there is a way around it? (2 Replies)
Discussion started by: bhatia
2 Replies
4. Shell Programming and Scripting
I'm new to expecting and i want to create a script to ssh to a device,check is a process is running and display that the process is running or not.This is what i have so far
After executing this script i get an error.
#!/usr/bin/expect
set timeout -1
set ip "machine ip goes here"
set... (5 Replies)
Discussion started by: icchi
5 Replies
5. Shell Programming and Scripting
My searches turned up nothing relevant, so I apologize if this has already been looked at.
I am trying to run an expect script from a Solaris machine, that ssh's into an AIX machine, and interacts with a SMIT created menu system that runs a few backups for me.
The expect script runs fine when... (0 Replies)
Discussion started by: Mariognarly
0 Replies
6. Shell Programming and Scripting
Hello everyone,
I have a small expect script as follows;
#!/usr/bin/expect -f
set force_conservative 0 ;# set to 1 to force conservative mode even if
;# script wasn't run conservatively originally
if {$force_conservative} {
set send_slow {1 .1}
proc send {ignore arg}... (1 Reply)
Discussion started by: randeel
1 Replies
7. Shell Programming and Scripting
I have an Ubuntu machine that I'd like to update automatically. I've written an expect script to run the aptitude package manager and update my packages. Essentially it does:
aptitude update && aptitude upgrade while answering "yes" at the appropriate time.
It works quite nicely when run... (4 Replies)
Discussion started by: CluelessPerson
4 Replies
8. Shell Programming and Scripting
Hi, I have a script running while rsync command is fired to push some files. The output of rsync cmd has been redirected to the script which is used to generate log files containing progress info with formatting. when I enter ps -ef | grep rsync it shows the full scripting code on the cmd line... (2 Replies)
Discussion started by: rajeevra
2 Replies
9. Shell Programming and Scripting
I wrote a script to download the files from sftp location to local. while running the script manually its working fine. when i schedule the same in cron its not working.... :wall::wall:
here is the script:
#!/bin/bash
... (2 Replies)
Discussion started by: ganga39
2 Replies
10. Shell Programming and Scripting
Hello All,
I'm having an issue getting an expect script to run as a cron job. The script executes fin if I run it from the command line but I get nothing when trying to run it as a cron job. I've researched other forums and threads and there have been references to the environment, or lack... (16 Replies)
Discussion started by: KingT617
16 Replies
LEARN ABOUT DEBIAN
time_fields_to_filetime
TIME_FIELDS_FROM_FILETIME(3) http://www.synce.org/ TIME_FIELDS_FROM_FILETIME(3)
NAME
time_fields_from_filetime - convert between FILETIME and TIME_FIELDS
SYNOPSIS
#include <synce.h>
void time_fields_from_filetime(const FILETIME *filetime, TIME_FIELDS *timeFields);
bool time_fields_to_filetime(const TIME_FIELDS *timeFields, const FILETIME *filetime);
DESCRIPTION
The time_fields_from_filetime() function converts a FILETIME value into the existing broken down TIME_FIELDS struct pointed to by time-
Fields. time_fields_to_filetime() does the reverse.
typedef struct _TIME_FIELDS {
CSHORT Year; /* Specifies a value from 1601 on. */
CSHORT Month; /* Specifies a value from 1 to 12. */
CSHORT Day; /* Specifies a value from 1 to 31. */
CSHORT Hour; /* Specifies a value from 0 to 23. */
CSHORT Minute; /* Specifies a value from 0 to 59. */
CSHORT Second; /* Specifies a value from 0 to 59. */
CSHORT Milliseconds; /* Specifies a value from 0 to 999. */
CSHORT Weekday; /* Specifies a value from 0 to 6 (Sunday to Saturday). */
} TIME_FIELDS;
RETURN VALUE
The time_fields_to_filetime() function returns FALSE on encountering an invalid value, or TRUE if successful.
SEE ALSO
synce(7)
The SynCE Project 2007-08-26 TIME_FIELDS_FROM_FILETIME(3)