The remote servers have thousands of CSV files organized into 3 groups. The user supplies a start and end date and the script returns the records between the supplied dates/times. The script must first determine which files should contain the correct data (determined by file name = $filelist) then determine which lines from those files are between the start and end date (determined by unix timestamp field). The perl functions are to convert the user-supplied start and end date/time to epoch timestamp so time is relative to the server, not the user. This enabled me to skip time zone and DST implementation in the GUI since users can be in different time zones.
I did run the commands from an interactive session, which is a convenient way to test since it mimics what plink is doing. This is where I was seeing the undefined variable messages. When i included a pwd command, I found that the cd command was not executed either.
Since the initial post though, I learned that quoting the heredoc delimiter works. All the commands appeared to have run in bash and provided an output.
I'm still not sure why this works but glad it does. I'm still faced with the timestamp conversion issue though. I played around with similar perl commands inside the nawk statement but am not having much luck. This issue doesn't have as big of an impact as did running the commands in bash instead of sh but it would be nice to resolve it.
---------- Post updated at 12:15 PM ---------- Previous update was at 11:57 AM ----------
Edit: I just realized that the login shell for these Solaris 10 boxes is csh rather than sh. Not sure is that changes things much
Hi ,
I am having one situation in which I need to run some simple unix commands after doing "chroot" command in a shell script. Which in turn creates a new shell.
So scenario is that
- I need to have one shell script which is ran as a part of crontab
- in this shell script I need to do a... (2 Replies)
Hi friends this is first post i am very new to shell scripting so i require your expertise to do the following thank u
I need to write a shell script which will run the following commands
pg_dump bank > backup(Enter)
Wait for bash prompt to appear coz it indicates that the command is... (23 Replies)
I want to log into a remote server transfer over a new config and then backup the existing config, replace with the new config.
I am not sure if I can do this with BASH scripting.
I have set up password less login by adding my public key to authorized_keys file, it works.
I am a little... (1 Reply)
I want to write a script which would run from one host say A and connect to other remote host B and then run rest of commands in that host. I tried connecting from A host to B with SSH but after connecting to host B it just getting me inside Host B command prompt. Rest of the script is not running... (6 Replies)
Hello All. I suspect that this will be a clear noob question, but I haven't been able to figure it out using the usual methods, so I turn to you.
I've written a script to create input files for the quantum chemistry program NWCHEM. Generally you create an input file and then execute it by... (12 Replies)
run_xfs_fsr is a xfs filesystem maintenance script designed to run under cron. The system is a home theater personal computer running mythbuntu 10.10, and is accessed remotely for these tests. cron runs a script, (xfs_fsr.sh) at 02:30 that runs the subject script under BASH and sets the... (3 Replies)
Hi all. On X11 I'm on a shell ...shell_1 (/bin/bash). From here I want to open another shell window shell_2 who executes commands like "ls -l" or programs like ". /program"... so the "result" of commands shows in shell_2 window and not in shell_1. Is that possible ? (4 Replies)
How to run several bash commands put in bash command line without needing and requiring a script file.
Because I'm actually a windows guy and new here so for illustration is sort of :
$ bash "echo ${PATH} & echo have a nice day!"
will do output, for example:... (4 Replies)
Hi
I need to track what commands run in login session in solaris whether it is root or any normal users in bash shell.
My actual requirement is that when a user (nomal/root) login into the system, whatever commands he run, it should log into file on specified path . I don't require command... (4 Replies)
Discussion started by: hb00
4 Replies
LEARN ABOUT OSF1
uuxqt
uuxqt(1) General Commands Manual uuxqt(1)NAME
uuxqt - Executes remote command requests
SYNOPSIS
uuxqt [-ssystem] [-xdebug_level]
The uuxqt program executes specified commands on designated remote systems.
OPTIONS
Specifies the name of the remote system. Use this option only when starting uuxqt manually. The remote system name is supplied internally
when uuxqt is started automatically. Displays debugging information on the screen of the local system; debug_level is a single digit
between 0 and 9. The higher the number specified, the more detailed the debugging information displayed.
DESCRIPTION
When uux is entered by a user, the program creates the necessary C.* (Command), D.* (Data), and X.* (Execute) files and places them in
the spooling directory on the designated remote system. The uux command then calls the uucico daemon which in turn, tries to contact the
designated system to deliver the files. When the files are transferred, uuxqt executes the commands on the designated system.
The uuxqt program searches the spool directories on the designated system for the X.* (Execute) files whose names indicate that they were
sent from another system. The command checks each X.* file for the following: All of the required D.* (Data) files must be available and
accessible. File commands must be permitted for the requesting system.
The uuxqt program can be executed manually by a user with superuser privileges. This daemon is executed automatically by the uudemon.hour
shell script, which is started periodically by cron.
FILES
Lock file which prevents multiple use of device Limits number of remote command executions Access permission codes
SEE ALSO
Commands: uucico(8), uucp(1), uustat(1), uux(1)uuxqt(1)