We have had a script here for years used to send files to other computers or to rcmd a command entered thru a prompt. A file we are looking for on the other computers will start with the same characters followed by -nnnnnn.txt. I can log into another computer and find (or not) that file, but not with a rcmd. This is the relevant part of the script:
A command like "ls -l /dir1/dir2/FILEONE-.*" doesn't work.
Any ideas? TIA This is a SCO machine but the remotes may be SCO or Linux.
Saying a command doesn't work without telling us what happens and in what way it doesn't work leaves us with lots of things that we could imagine and nothing that we can base any realistic suggestions that might be able to solve your problem.
One might guess that the asterisk is being expanded to a list of files on your local machine by the shell that is collecting arguments before invoking rcmd in the loop. Are there files on your local machine that match the filename component when $cmdname is expanded? Are the files matched on the local machine the same files that would match if that pattern were expanded on each of the remote machines?
This User Gave Thanks to Don Cragun For This Post:
This morning I tried it again with "ls -l /dir1/dir2/FILEONE*" and that shows up at the top of the log. If I sent it to bb123456, what comes back is
That file does not exist on this computer--the remote computers compress it with other files to send it to us. That file does exist on bb998877, though.
I have tried enclosing the entire command in single quotes and double quotes in separate tests. What I get is
and at linux branches the "sh" is replaced by "bash".
It's been a few years since this topic was last asked and answered.. curious whether anyone knows if the landscape has improved?
looking for a more modern release of OpenOffice / LibreOffice / etc than the OOo-3.3 version mentioned in earlier posts from 2012. Would prefer not to compile from... (1 Reply)
I need to replace the (*) in the fist of a list with numbers using sed for example >
this file contain a list
* linux
* computers
* labs
* questions
to >>>>
this file contain a list
1. linux
2. computers
3. labs
4. questions (7 Replies)
I have a recent file I am trying to parse that looks like this:
value_one:1:value_two:2:value_three:3
value_one matches to 1
value_two matches to 2
value_three matches to 3
the semi-colons not only seperate the tags to their corresponding values, but also seperate tag/value pairs from... (2 Replies)