OpenVMS

Getting “Invalid URL” when uploading file using FtpWebRequest

随声附和 提交于 2019-12-10 11:05:28
问题 We have an OpenVMS (VMS) Alpha server which I need to access in order for me to transfer a file via FTP. The problem is that it does not support the command used in FtpWebRequest when initiating the connection (ftp://192.168.xx.xx), is there any other FTP function that I may used aside from FtpWebRequest? I've been using my code on Windows and Unix environment before but this is my first time to do it on a VMS OS, I can also access the server via FTP using the command prompt. Below is my code

Developing with C++ on OpenVMS

℡╲_俬逩灬. 提交于 2019-12-08 11:55:45
问题 I am looking at a C++ project on OpenVMS. How different is it from NIX development? Is it a bit like a peculiar UNIX version or LINUX distro? Any peculiarities when it comes to memory management or threading etc? (I know FILE I/O is a bit different). Are the C++ compilers a bit like older C++ versions on other platforms? (Less support for templates etc.) Can I use bash, without touching DCL? What about IDEs, debugging (gdb) source control etc? (It seams NetBeans are OK) Can I work remotely

How do I export OpenVMS CMS history and import it to GIT

a 夏天 提交于 2019-12-08 08:30:23
问题 We are getting rid of our DEC Alpha Workstations and have a lot of historical software under OpenVMS Code Management System (CMS) that we would like to import to GIT running on Linux. Currently we have to do this by hand and it will take a long time to do. Does anyone know of a script that would automate this process? 回答1: Just had to deal with CMS-Git migration, needed to find ready solutions, which led me here. Surprisingly not many choices for this task. Kept digging and also found one

Getting “Invalid URL” when uploading file using FtpWebRequest

久未见 提交于 2019-12-06 12:45:37
We have an OpenVMS (VMS) Alpha server which I need to access in order for me to transfer a file via FTP. The problem is that it does not support the command used in FtpWebRequest when initiating the connection ( ftp://192.168.xx.xx ), is there any other FTP function that I may used aside from FtpWebRequest? I've been using my code on Windows and Unix environment before but this is my first time to do it on a VMS OS, I can also access the server via FTP using the command prompt. Below is my code: //Initializing ftp request ftp ftpClient = new ftp(@"ftp://192.168.xx.xx/", "username", "password")

Python3 环境搭建

天涯浪子 提交于 2019-12-05 14:22:53
Python 是一个高层次的结合了解释性、编译性、互动性和面向对象的 脚本 语言。 Python3 可应用于多平台包括 Windows、 Linux 和 Mac OS X。 Unix (Solaris, Linux, FreeBSD, AIX, HP/UX, SunOS, IRIX, 等等。) Win 9x/NT/2000 Macintosh (Intel, PPC, 68K) OS/2 DOS (多个DOS版本) PalmOS Nokia 移动手机 Windows CE Acorn/RISC OS BeOS Amiga VMS/OpenVMS QNX VxWorks Psion Python 同样可以移植到 Java 和 .NET 虚拟机上。 Python3 下载 Python3 最新源码,二进制文档,新闻资讯等可以在 Python 的官网查看到: Python 官网:https://www.python.org/ 你可以在以下链接中下载 Python 的文档,你可以下载 HTML、PDF 和 PostScript 等格式的文档。 Python文档下载地址:https://www.python.org/doc/ Python 安装 Python 已经被移植在许多平台上(经过改动使它能够工作在不同平台上)。 您需要下载适用于您使用平台的二进制代码,然后安装 Python。

How does one safely static_cast between unsigned int and int?

a 夏天 提交于 2019-12-04 01:50:32
I have an 8-character string representing a hexadecimal number and I need to convert it to an int . This conversion has to preserve the bit pattern for strings "80000000" and higher, i.e., those numbers should come out negative. Unfortunately, the naive solution: int hex_str_to_int(const string hexStr) { stringstream strm; strm << hex << hexStr; unsigned int val = 0; strm >> val; return static_cast<int>(val); } doesn't work for my compiler if val > MAX_INT (the returned value is 0). Changing the type of val to int also results in a 0 for the larger numbers. I've tried several different

Strings, gets and do while

谁说胖子不能爱 提交于 2019-12-02 15:54:31
问题 I'm doing an exercise in C but I have a problem when at the and I want to repeat the cicle (do while), infact if I type 1 the programme starts again by the top, but it doesn't stop at the gets(testo); . I tried plenty of ways to solve the bug without a solution, can anyone help me? #include <stdlib.h> #include <stdio.h> #include <string.h> main(){ int cch, cw, i, j, w, ord, f; //counter and index char testo[80]; char alfa[50][25]; char swap[25]; do{ cch=0; cw=0; j=0; w=0; f=0; for(i=0;i<80;i+

Strings, gets and do while

筅森魡賤 提交于 2019-12-02 13:51:09
I'm doing an exercise in C but I have a problem when at the and I want to repeat the cicle (do while), infact if I type 1 the programme starts again by the top, but it doesn't stop at the gets(testo); . I tried plenty of ways to solve the bug without a solution, can anyone help me? #include <stdlib.h> #include <stdio.h> #include <string.h> main(){ int cch, cw, i, j, w, ord, f; //counter and index char testo[80]; char alfa[50][25]; char swap[25]; do{ cch=0; cw=0; j=0; w=0; f=0; for(i=0;i<80;i++){ testo[i]='\0'; } printf("Write the text:\n"); gets(testo); //initialization 2d array for(i=0;i<50;i

How to store a result to a variable in HP OpenVMS DCL?

耗尽温柔 提交于 2019-12-02 06:42:21
问题 I want to save the output of a program to a variable. I use the following approach ,but fail. $ PIPE RUN TEST | DEFINE/JOB VALUE @SYS$PIPE $ x = f$logical("VALUE") I got an error: %DCL-W-MAXPARM, too many parameters - reenter command with fewer parameters \WORLD\ reference : How to assign the output of a program to a variable in a DCL com script on VMS? 回答1: The usual way to do this is to write the output to a file and read from the file and put that into a DCL symbol (or logical). Although

Python3 环境搭建

旧巷老猫 提交于 2019-11-25 20:55:16
Python 是一个高层次的结合了解释性、编译性、互动性和面向对象的 脚本 语言。 Python3 可应用于多平台包括 Windows、 Linux 和 Mac OS X。 Unix (Solaris, Linux, FreeBSD, AIX, HP/UX, SunOS, IRIX, 等等。) Win 9x/NT/2000 Macintosh (Intel, PPC, 68K) OS/2 DOS (多个DOS版本) PalmOS Nokia 移动手机 Windows CE Acorn/RISC OS BeOS Amiga VMS/OpenVMS QNX VxWorks Psion Python 同样可以移植到 Java 和 .NET 虚拟机上。 Python3 下载 Python3 最新源码,二进制文档,新闻资讯等可以在 Python 的官网查看到: Python 官网:https://www.python.org/ 你可以在以下链接中下载 Python 的文档,你可以下载 HTML、PDF 和 PostScript 等格式的文档。 Python文档下载地址:https://www.python.org/doc/ Python 安装 Python 已经被移植在许多平台上(经过改动使它能够工作在不同平台上)。 您需要下载适用于您使用平台的二进制代码,然后安装 Python。