Sponsored Content
Top Forums Shell Programming and Scripting Help with copying from one drive to another with cgi & ksh script Post 303019654 by Paul Walker on Tuesday 3rd of July 2018 04:16:09 PM
Old 07-03-2018
Thanks v

---------- Post updated at 12:02 PM ---------- Previous update was at 11:45 AM ----------

Hi thank you for your advice below is an example of the $NOW variable
Code:
2018-07-03-10H-34M-40S

Yes I am using an a nsf mount.
When I open another shell and I can copy these files around the network but not from within the current ksh shell.
I even had a hard time getting the files to move to their final home under their current directory.

I will take your suggestions and clean up the script and get back to you with the results.
Thanks again!

---------- Post updated at 12:05 PM ---------- Previous update was at 12:02 PM ----------

Oh almost forgot, the double single quotes work with the i option for sed, they force it to not create a bak file.

---------- Post updated at 04:16 PM ---------- Previous update was at 12:05 PM ----------

Hi I made the changes you suggested but still I had little luck.
I created variables for the paths and used a command substitution that copies from one drive to the other and used echo to read everything into a bash shell which finally gave me what I needed

Code:
PrinergyHomeVar="/Library/Server/Web/Data/Sites/PrinergyHome.tigroup.ca"
AraxiFunelVar="/Volumes/AraxiVolume_HW07376_J/Jobs/funnel_Create_Job_Impo/HotFolders/Funnel_CreateImpos_05_22_18"
CopyXmlVar=$(cp '$PrinergyHomeVar'/XML-Library/'$NOW'*.xml  '$AraxiFunelVar')

Code:
echo CopyXmlVar | bash

Thank you for your assistance again
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

CGI passing arrays/hashes to another CGI script

If I have a Perl CGI script (script01), which fills an array(s) with information and outputs a HTML page with a link to another CGI page (script02); is there anyway to pass the array(s) from "script01" to "script02" when the page visitor clicks the link? Hope that makes sense! :) (2 Replies)
Discussion started by: WIntellect
2 Replies

2. Shell Programming and Scripting

Executing ksh script from cgi

Hi all, I'm developing a system which requires me to run a ksh script from within a cgi script. What sort of syntax will I need to do this, I'm sure it's simple but can't find out how anywhere! Thanks. (1 Reply)
Discussion started by: hodges
1 Replies

3. UNIX for Dummies Questions & Answers

Run ksh script from cgi

Hi, I'm developing a system which requires me to run a ksh script from within a cgi script. What sort of syntax will I need to do this, I'm sure it's simple but can't find out how anywhere! Thanks. (2 Replies)
Discussion started by: hodges
2 Replies

4. Filesystems, Disks and Memory

The best partitioning schem for a 250GB Sata hard drive & a 75GB SCSI hard drive

Hi I have 2 75GB SCSI hard drives and 2 250GB SATA hard drives which are using RAID Level 1 respectively. I wana have both FTP and Apache installed on them as services. I'm wondering what's the best partitioning schem? I wana use FC3 as my OS, so, I thought I can use the 75GB hard drive as the /... (0 Replies)
Discussion started by: sirbijan
0 Replies

5. AIX

Copying to tape drive throws error

Hi All I am trying to copy files present in a partition (server 2) which is mounted to a different server (server 1) as tape drive is connected to it. I ran the below command to copy files within a partition: svr01:root:/sunfileserver> tar -cvf * a <foldername>/<filename>/<filename> a... (4 Replies)
Discussion started by: vathsan
4 Replies

6. Shell Programming and Scripting

RCP for copying the files from one drive to other on Windows

Hi, I have a requirement to move the files between two drives in windows machine from Korn sheel. I came to know that It can be done through RCP. Can any one help me with syntax for connecting to Windows machine and moving the files with RCP in KSH? Thanks in advance. Double post.... (0 Replies)
Discussion started by: Raamc
0 Replies

7. UNIX for Dummies Questions & Answers

copying to an ntfs formatted flash drive

I copied some files from my Linux EXT4 box to an ntfs flash drive. I have ntfs-3g installed, and the files copied fine, but I could not view them on a Windows box. What happened? Did it not write them using NTFS? Did it mount the drive under a different file-system (is that even possible)? (1 Reply)
Discussion started by: glev2005
1 Replies

8. Web Development

problem with exporting vairable from one perl cgi to another perl cgi script while redirecting.

Can anyone tell me how to export a variable from one perl CGI script to another perl cgi script when using a redirect. Upon running the login.pl the user is prompted to enter user name and password. Upon entering the correct credentials (admin/admin) the user is redirected to welcome page. My... (3 Replies)
Discussion started by: Arun_Linux
3 Replies

9. Red Hat

Copying data from USB CD Drive.

I need to perform operation as captioned. I found out USB CD Drive is attached, by running 'lsusb' command. I am trying to identify mechanism by which I could mount this USB CD drive to disk. After which I expect to copy the contents. Could anyone indicate how this could be performed ? (3 Replies)
Discussion started by: videsh77
3 Replies

10. UNIX for Advanced & Expert Users

The disk drive for /tmp is not ready yet or not present && the disk drive for /boot is not ready yet

Hi Team when I boot the server I get this 2 errors : the disk drive for /tmp is not ready yet or not present the disk drive for /boot is not ready yet or not present and its stay like that , I m using Ubuntu 12.04 please if someone have any idea how to fix that problem . (1 Reply)
Discussion started by: SULTAN01
1 Replies
UNSQUASHFS(1)						  uncompress squashfs filesystems					     UNSQUASHFS(1)

NAME
mksquashfs - tool to uncompress squashfs filesystems SYNOPSIS
unsquashfs [OPTIONS] FILESYSTEM [directories or files to extract] DESCRIPTION
Squashfs is a highly compressed read-only filesystem for Linux. It uses zlib compression to compress both files, inodes and directories. Inodes in the system are very small and all blocks are packed to minimize data overhead. Block sizes greater than 4K are supported up to a maximum of 64K. Squashfs is intended for general read-only filesystem use, for archival use (i.e. in cases where a .tar.gz file may be used), and in con- strained block device/memory systems (e.g. embedded systems) where low overhead is needed. OPTIONS
-v, -version print version, licence and copyright information. -d PATHNAME, -dest PATHNAME unsquash to PATHNAME, default "squashfs-root". -n, -no-progress don't display the progress bar. -no, -no-xattrs don't extract xattrs in file system. -x, -xattrs extract xattrs in file system (default). -p NUMBER, -processors NUMBER use NUMBER processors. By default will use number of processors available. -i, -info print files as they are unsquashed. -li, -linfo print files as they are unsquashed with file attributes (like ls -l output). -l, -ls list filesystem, but don't unsquash. -ll, -lls list filesystem with file attributes (like ls -l output), but don't unsquash. -f, -force if file already exists then overwrite. -s, -stat display filesystem superblock information. -e EXTRACT_FILE, -ef EXTRACT_FILE list of directories or files to extract. One per line. -da SIZE, -data-queue SIZE Set data queue to SIZE Mbytes. Default 256 Mbytes. -fr SIZE, -frag-queue SIZE Set fragment queue to SIZE Mbytes. Default 256 Mbytes. -r, -regex treat extract names as POSIX regular expressions rather than use the default shell wildcard expansion (globbing). Decompressors available gzip lzo xz SEE ALSO
mksquashfs(1) HOMEPAGE
More information about unsquashfs and the squashfs filesystem can be found at <http://squashfs.sourceforge.net/>. AUTHOR
squashfs was written by Phillip Lougher <plougher@users.sourceforge.net>. This manual page was written by Daniel Baumann <daniel.baumann@progress-technologies.net>. 4.2 2012-06-30 UNSQUASHFS(1)
All times are GMT -4. The time now is 01:06 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy