Hi,
I need to know how I'll be able to write a script that can goto a different dir where I don't have access to read,write and execute and also to run a commandline prompt in that dir with one file whose path has to be specified in that command.
Will I be able to do this?
Any ideas or... (2 Replies)
hi all,
i'm looking for a bash or tcsh script that will clone an empty dir tree 'over' another tree ...
specifically, i'd like to:
(1) specify a src directory
(2) list the directory tree/hiearchy beneath that src dir, w/o files -- just the dirs
(3) clone that same, empty dir hierarchy to... (2 Replies)
OK I am trying to use something similar to this:
#!/bin/sh
echo "OK, starting now..."
sftp -b /dev/fd/0 user@remotehost <<EOF
cd pub
ascii
put filename.txt
bye
EOF
only difference is the dir I need to cd to has a space in it like this
/Import/Server/Prospect File
,... (3 Replies)
Hello!!
I have directories from 2008, with files in them. I want to create a script that will find the directoried from 2008 (example directory:
drwxr-xr-x 2 isplan users 1024 Nov 21 2008 FILES_112108), delete the files within those directories and then delete the directories... (3 Replies)
Need a script to move the files from one dir to other dir and at the same time it has to read the log in the source dir. Please help me ASAP. (4 Replies)
AIX 6.1
Of course, right at the end of the day I see that my "/" file system is just about out of space. I've been googling and reading man pages, but my google-fu is weak today. How do I find out what is taking all the space? I think I found the process that is cause *some* file to grow but I... (15 Replies)
du -hs command calculates the space for all the subdirs under a dir ...but it is very slow if the dir is huge....is there any quick way ...I am using Sun OS.
Thanks,
Ajay (19 Replies)
Hello all,
I'm very new to shell scripting and need quite urgently to do this thing for my student job. I have a directory called "vectors" with a bunch of files all named ".vector". also i have for each of those files a directory with the name . I now want to move each of those *.vector files... (2 Replies)
We have a script which when run consumes the space of the disk from where it is being run. we have to kill this script every time to release space.
why do this happen ? any work around please
we are using solaris 10
P.S. : a part of the code will make some connection to the DB (1 Reply)
I have a script that I am trying to use. I need it to run from a certain directory. I have tried the following:
SCRIPT_DIR=$PWD
MYDIR="/filemount/files/Move Files"
cd "$MYDIR"
$SCRIPT_DIR/movefiles.bash
I have tried to run it. but I always get "no such file or directory" from the script... (5 Replies)
Discussion started by: newbie2010
5 Replies
LEARN ABOUT DEBIAN
net::hotline::task
Net::Hotline::Task(3pm) User Contributed Perl Documentation Net::Hotline::Task(3pm)NAME
Net::Hotline::Task - Task object used internally by Net::Hotline::Client
SYNOPSIS
use Net::Hotline::Task;
$task = new Net::Hotline::Task;
$task->start(time());
$task->num($num++);
...
DESCRIPTION
Net::Hotline::Task is a simple class for storing and retrieving task information, You should never have to create your own
Net::Hotline::Task objects when using Net::Hotline::Client. Getting and (to a lesser extent) setting attributes is all that should be
necessary.
CONSTRUCTION
new NUM, TYPE, START, SOCKET, PATH
With no arguments, creates a new Net::Hotline::Task object with all attributes set to undef. With three or four arguments (PATH is
optional), creates a new Net::Hotline::Task object with task number NUM, task type TYPE, start time START, user socket number SOCKET,
and file path PATH.
METHODS
All the Net::Hotline::Task methods are simple attribute get/set routines. If given an argument, they set an attribute. In all cases, they
return the current value of the attribute.
error EXPR
The error state of the task. A true value means there was an error.
error_text TEXT
The error message text. This only applies if error() returns a true value.
finish TIME
The time (in platform-native time format, i.e. seconds since the epoch on a Unix system) that a task completed.
num NUMBER
The unique task number. Task numbers increase sequentially.
path PATH
The path information associated with a task (if any). In situations where two paths may be associated with a task (a "move file" task,
for example), a reference to an array containing the paths will be returned.
socket NUMBER
The unique user socket number associated with a task (if any).
start TIME
The time (in platform-native time format) that a task was started.
type TASK_TYPE
The HTLC_TASK_XXX constant specifying the type of task. These constants are defined in Net::Hotline::Constants, and include:
HTLC_TASK_KICK Disconnect a user.
HTLC_TASK_LOGIN Log into server.
HTLC_TASK_NEWS Get the news.
HTLC_TASK_NEWS_POST Post to news.
HTLC_TASK_FILE_DELETE Delete a file.
HTLC_TASK_FILE_INFO Get file information.
HTLC_TASK_FILE_LIST Get a file list.
HTLC_TASK_FILE_MKDIR Create a new folder.
HTLC_TASK_FILE_MOVE Move a file.
HTLC_TASK_SEND_MSG Send a private message.
HTLC_TASK_SET_INFO Set file information.
HTLC_TASK_USER_INFO Get user information.
HTLC_TASK_USER_LIST Get the userlist.
AUTHOR
John C. Siracusa (siracusa@mindspring.com)
COPYRIGHT
Copyright(c) 1999 by John Siracusa. All rights reserved. This program is free software; you can redistribute it and/or modify it under
the same terms as Perl itself.
perl v5.10.1 2002-11-27 Net::Hotline::Task(3pm)