As shown, you can run a Perl script on another drive in the same way:
If you have to run a script which depends on other files relative to that dir, you can do a chdir() inside, then the remainder of the script will be relative to that dir:
Hi
Does any body know how i can run a program at bootup?
I have squid (cache server) installed on my PC but after boot up i should
run it manually but i want it to run automaticly is there a way?
I used to do it by entering the address ina file but i've forgotten it now.
But i remember that ... (2 Replies)
I have aquired the dutties of looking after our MRP system
We have a HP 9000D running Unix With MINX as tha MRP system
Our last IT System adim. had crashed the system before he left
and sense then we have not been able to log on to the system at the console or remotely. tha error reads minx... (6 Replies)
Hi,
I need to execute a Windows command from UNIX crontab ( or similar utility). We are evaluating the schedular applications that will easily solve this issue although it will be a while by the time the tool selection happens and I need something to implement this solution in the iterim.
... (1 Reply)
Hi Guys,
I need to count files in a dir which were updated yesterday.
ls -lth | grep -i 'Jul 7' | wc -l
The dir holds files of last 15 days and total count is as 2067476.
Is it efficient to count the files using perl? I have developed the following perl script making use of system().
Can... (3 Replies)
Long story short: I'm working inside of a Unix SSH under a bash shell. I have to code a C program that generates a random number. Then I have to call the compiled C program with a Perl program to run the C program 20 times and put all the generated random #s into a text file, then print that text... (1 Reply)
I'm writing a Perl script which has its 1st step as to copy files from one directory to another directory. The Source directory has got files with extension, without extension, directories etc. But I want to copy ONLY files with no extension. The files with extensions and directories should not get... (2 Replies)
Greetings!
Been a while since I futzed around with Perl, and came upon a minor headscratcher for the community ;)
Here's the basic code which I'm trying to make tick over:#!/usr/bin/perl
use strict;
use warnings;
use diagnostics;
print " starting ";
while (-e "~/.somedir/testFile")... (9 Replies)
I created a program, so a kid can practice there math on it. It dispenses varies math problems and the kid must input an answer. I also want it to grade the work they have done, but I can't find the best place for it to print out the grade.
I have:
if ( $response =~ m/^/ ) {
$user_wants_to_quit... (1 Reply)