qshell | a simple desktop shell based on Qt5 and KF5 | Dektop Application library
kandi X-RAY | qshell Summary
kandi X-RAY | qshell Summary
a simple desktop shell based on Qt5 and KF5
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of qshell
qshell Key Features
qshell Examples and Code Snippets
Community Discussions
Trending Discussions on qshell
QUESTION
In QSHELL, I do cat of two files with the same text in different encodings, and both print the same content, look (hell.txt is EBCDIC and hellascii.txt is ASCII):
cat hellascii.txt
hello @@@@@@@
cat hell.txt
hello @@@@@@@
od -x hell.txt
0000000 4040 4040 8885 9393 9640 7c7c 7c7c 7c7c
0000020 7c25
0000022
od -x hellascii.txt
0000000 2020 2020 6865 6c6c 6f20 4040 4040 4040
0000020 4000
0000021
In my laptob, in linux or mac, EBCDIC encoding shows other characters that look messed up. How the unix in as400 can print both correctly? I do not see anything such as a file header that indicates the encoding. For example, 0x40 is @ in ascii and space in EBCDIC, but cat prints correctly in hell.txt the 0x40 as space and in hellascii.txt as @.
...ANSWER
Answered 2021-Mar-15 at 00:00On IBM i, the system keeps track of the CCSID assigned to each IFS file. You can see the CCSID by using the -C option of od. Here is an example.
QUESTION
I am new in qshell and would like to ask for assistance. I am trying to get the file count inside an IFS directory using below qshell command.
...ANSWER
Answered 2020-Oct-12 at 07:03The below snippet should work for you
QUESTION
I am using QCMDEXC in COBOL to execute a QShell command like this:
...ANSWER
Answered 2020-Sep-22 at 09:54There's a thread in the archives of the midrange.com COBOL400 mailing list about reading IFS files in COBOL. Here's a post from that thread with a sample program. https://archive.midrange.com/cobol400-l/200010/msg00006.html
QUESTION
I've read time and time again that IBM i is a modern system supporting many programming languages. How do I determine which ones are available to me besides COBOL and RPG?
A laundry list is given on Wikipedia, and I'd be interested especially in C, C++, BASIC, SmallTalk, and Pascal.
https://en.wikipedia.org/wiki/IBM_System_i#Programming
What commands can be run to determine which languages are installed? How do you edit source for these languages in the qshell environment? (Vi input appears broken in qshell ...)
...ANSWER
Answered 2019-Oct-23 at 06:48BASIC, Pascal, and possibly Smalltalk are no longer supported...
PL/1 is only supported via Request Price Quotation (RPQ) for existing customers...
Basically, the ILE languages (compilers supplied by IBM that can create IBM i *PGM or *SRVPGM objects)
- C
- C++
- COBOL
- RPG
- CL
Also SQL. Stored procedures and user defined functions written in SQL are actually created as C *PGM/*SRVPGM objects. You can also use any of the above ILE language objects as an SQL stored procedure or user defined function. Finally all the above can have embedded SQL statements in their source.
Scripting/interpretated languages (from IBM)
- Net.Data
- REXX
"Modern" languages supported via PASE (basically an AIX compatibly layer)
- Java (JRE/SDK provided by IBM)
- PHP (provided/supported by Zend)
And additional Open source languages (also via PASE)
- Python
- Perl
- Node.js
- Ruby
more info on the Open Source for IBM i here https://bitbucket.org/ibmi/opensource/src/master/
QUESTION
All I'm trying to do is to drop a log on IFS
Here is my code:
...ANSWER
Answered 2019-Jul-15 at 21:51Found the issue. I was using IFSFileOutputStream
to write binary stream of text. By switching it to IFSTextFileOutputStream
, problem was resolved.
QUESTION
To test a qshell script which automatically clean up journals older than 2 days in the DB2 for i I need to have some journals in statuses which are not Attached or Online (the script skips journals with such statuses). Could anybody help me and advise how to change/update journal statuses using System I navigator or SQL statements.
Currently I have items in the "Attached" status in the "Journal Receivers" part and when I change receiver for Journal, a new journal receiver is created in the Attached status and the previous one is moved to the Online status. I have not found any ways to move them to other statuses. I also tried to get some information from the DISPLAY_JOURNAL using SQL statements however with any success.
...ANSWER
Answered 2019-Apr-05 at 10:05DISPLAY_JOURNAL is only available since version 7.2
however, don't you have enough options to control journal deletion ? I let the IBM i manage them Methods to reduce the storage that journal receivers use
QUESTION
I am trying to run some PHP code from QShell on an AS400, and it keeps giving me the following error message:
Command ended normally with exit status 2.
This has been difficult to test, because it's a dummy user that's running it automatically, and when I run it under my account it works just fine.
According to this guide, this return code is either a missing argument (which I find unlikely, since it works for me) or a permissions issue, but I have checked all of the permissions multiple times and it seems like they're all set properly. I have tried to get a PHP error log, but it doesn't get filled at all, meaning it doesn't even get into the PHP code.
Here's a sample command that I'm running:
/path/php-cli /other_path/myPHP.php "inFile=abc.txt"
Is there any way to find out what file is missing the proper permissions, or is it just an Easter egg hunt?
...ANSWER
Answered 2019-Apr-01 at 14:25I found a solution, hopefully this will help someone in the future:
The PHP-CLI we were using was outdated, so I used the PHP call itself instead (located in /php/bin/php by default). This still gave errors, but the error log I created finally started getting filled, and I was able to pinpoint which file was causing the error.
QUESTION
source script as below.
...ANSWER
Answered 2017-Jul-03 at 07:56You can split lines on certain syntax elements, and then let Vim's indenter reindent the file:
QUESTION
How would you run a stored procedure via DB2 command of QShell, as I need a simple way to unit test a change to a stored procedure?
On IBM i
Started qshell with
QSH
Entered these db2 commands in various formats without success
...ANSWER
Answered 2017-Feb-17 at 12:14I use Squirrel SQL Client http://squirrel-sql.sourceforge.net/ to test all of my SQL.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install qshell
extra-cmake-modules
Qt5 (Core, DBus, Widgets, X11Extras components)
KF5 (Config, KIO, WindowSystem components)
KF5Solid
Xlib
Pulseaudio
A Q::Shell session will appear on your display manager's session selection. NOTE: it is currently required that KDE Plasma be installed as the session requires several Plasma-specific utilities.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page