Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
7
votes
2
answers
981
views
Color terminal under USS
I've been using a remote terminal connected to USS under a mainframe for some time. Is there a way to configure this terminal to be colored? I'm using PuTTY and xterm. **Added:** USS stands for [UNIX System Services][1], UNIX implementation for mainframes. [1]: http://en.wikipedia.org/wiki/UNIX_Syst...
I've been using a remote terminal connected to USS under a mainframe for some time. Is there a way to configure this terminal to be colored?
I'm using PuTTY and xterm.
**Added:** USS stands for UNIX System Services , UNIX implementation for mainframes.
tcb
(171 rep)
May 8, 2012, 04:29 PM
• Last activity: Aug 10, 2020, 08:08 AM
2
votes
3
answers
4146
views
how to make a large command line broke in two lines be executed as a single line inside of a script
I am using IBM z/OS390 and I am using the OMVS shell. I don't have "vi" installed at all so I use "oedit". If I try to initialize the app.jar straigh from OMVS shell it Works perfectly. I mean, if I reach the java directory and start the app from there with the two commands below, it Works 100%. cd...
I am using IBM z/OS390 and I am using the OMVS shell.
I don't have "vi" installed at all so I use "oedit".
If I try to initialize the app.jar straigh from OMVS shell it Works perfectly. I mean, if I reach the java directory and start the app from there with the two commands below, it Works 100%.
cd /WebSphere/was85/mycel/mynode/AppServer/java_1.7_64/bin
./java -cp /usr/my.jar com/com.my_comapny_witt_entire_name/myMain
I created a script file via OEDIT and added both lines. The second was broke in two lines. Unfortunatelly I am getting this error obviously because while running, the second command line has been treated as diferente two lines.
$ ./script_boot_app
Error: Could not find or load main class com.my_comapny_witt_entire_name.
/myMain: ./script_boot_app 3: FSUM7351 not found
Probably if the path and java package names were smaller enough to fit in one line it wouldn't happen. So my question is: how can I use OEDIT and guarante that multiple lines will be treated as just one line exactly as I did when executing the command straight from shell? When typing straigh in OMVS shell and the end of line is reached, naturaly I continue in the below line and it is executed as a single command line. How can I do the same inside of a script created in OEDIT tool?
Jim C
(145 rep)
May 31, 2016, 02:28 AM
• Last activity: Aug 21, 2018, 10:38 PM
7
votes
2
answers
4076
views
TAB autocomplete in Bourne Shell
I don't know how to get the TAB key to autocomplete filenames, commands, or anything at all. I'm on a Unix-like system (OS/390) and depend on several scripts that work in sh (Bourne shell, not BASH), but not in other shells (tcsh, for example), so I can't switch shells. I usually connect to this sys...
I don't know how to get the TAB key to autocomplete filenames, commands, or anything at all.
I'm on a Unix-like system (OS/390) and depend on several scripts that work in sh (Bourne shell, not BASH), but not in other shells (tcsh, for example), so I can't switch shells. I usually connect to this system via ssh or telnet from Ubuntu's GNOME Terminal running bash locally. Other people connect to the OS/390 system via telnet from the Windows XP command prompt, and they are able to autocomplete with the TAB key after issuing "set -o emacs". When I issue "set -o emacs", I get some of the appropriate functionality (ctrl-p to step backward through the history, for example), but not autocomplete.
I am aware of the "set -o vi" option, but using "ESC-*", etc does not appeal to me because I know that the simple TAB key works for other people.
Is there something about Ubuntu, the GNOME Terminal, bash, or ssh that sends a different tab character than a Windows XP command prompt running telnet?
Does anyone have an idea as to why I might not be able to get tab to autocomplete while people on that same remote machine, running the same shell, can?
**What should be done in order to enable *tab auto-complete*?**
Thomas G Henry LLC
(172 rep)
Dec 15, 2010, 05:45 PM
• Last activity: Aug 7, 2017, 11:06 AM
-1
votes
1
answers
2042
views
db2start fails with error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
Installed db2 10.5 but installation completes with warning that db2start failed *while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory*. i have both libstdc++.so.5 and libstdc++.so.6 in my /usr/lib/ [root@lnxcm8 adm]# ll /usr/lib | grep libstdc++.s...
Installed db2 10.5 but installation completes with warning that db2start failed
*while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory*.
i have both libstdc++.so.5 and libstdc++.so.6 in my /usr/lib/
[root@lnxcm8 adm]# ll /usr/lib | grep libstdc++.so.
lrwxrwxrwx 1 root root 18 Jun 25 16:56 libstdc++.so.5 -> libstdc++.so.5.0.7
-rwxr-xr-x 1 root root 824172 Jul 2 2015 libstdc++.so.5.0.7
lrwxrwxrwx 1 root root 19 Jun 26 16:23 libstdc++.so.6 -> libstdc++.so.6.0.19
-rwxr-xr-x 1 root root 1075592 Aug 31 2016 libstdc++.so.6.0.19
Also while installation dn2prereq stated that i need *libstdc++.so.6* so i installed it, and now when it complete its installation it fails with error failed to load libstdc++.so.5.
Yogesh Kumar
(101 rep)
Jun 26, 2017, 03:51 PM
• Last activity: Jun 26, 2017, 03:57 PM
4
votes
1
answers
1072
views
cannot find -lm
I am trying to build gcc G4.8.5 for architecture s390x(cross compiled) on x86 32(sles10 patchlevel 4) 2.6.16.60-0.85.1-vmipae for sles12sp2 and i am getting an error /s390x-suse-linux/bin/ld: cannot find -lm collect2: error: ld returned 1 exit status --------------------------------------------- /s3...
I am trying to build gcc G4.8.5 for architecture s390x(cross compiled) on
x86 32(sles10 patchlevel 4) 2.6.16.60-0.85.1-vmipae
for sles12sp2 and i am getting an error
/s390x-suse-linux/bin/ld: cannot find -lm
collect2: error: ld returned 1 exit status
---------------------------------------------
/s390x-suse-linux/libstdc++-v3/src'
make: *** [all-recursive] Error 1
make: Leaving directory `toolchain_s390/build.s390x/gcc/s390x-suse-linux/libstdc++-v3'
make: *** [all] Error 2
Error building GCC
Any guidance in right direction is highly appreciated
Update:
I am able to build binutils compat compat_binutils compat_gcc compat_gettext compat_links compat_m4 gmp links mpc mpfr
MikasaAckerman
(339 rep)
Apr 5, 2017, 06:04 PM
• Last activity: Apr 5, 2017, 06:50 PM
0
votes
1
answers
295
views
Install NSIS on SLES zLinux
I need to install NSIS (http://nsis.sourceforge.net) on corporate zLinux server (SLES 11 SP 3 on z/OS machine). Here are the inputs: 1. I have root 2. I don't have compilers there (gcc or g++) and I doubt I can get them installed 3. I don't have support from any other admins (on the project my prima...
I need to install NSIS (http://nsis.sourceforge.net) on corporate zLinux server (SLES 11 SP 3 on z/OS machine).
Here are the inputs:
1. I have root
2. I don't have compilers there (gcc or g++) and I doubt I can get them installed
3. I don't have support from any other admins (on the project my primary responsibility is development, and because of lack of resources I have to do Linux set up myself)
So, my options are:
1. Find NSIS binary rpm for SLES on s390x platform - probability close to 0
2. Set up some other PC machine with compiler and cross-compile - probability close to 0.001 as I never had a deal with compilers and cross compiling
3. Find Wine binary rpm and after install transfer NSIS MS Windows binaries to zLinux machine - probability close to 0.01% as seems Wine also not popular application for Linux on z/OS platform **<== It was a mistake Wine requires Intel processor, it can not run on zLinux**
Any help is highly appreciated.
**UPDATE:**
file /bin/ls
/bin/ls: ELF 64-bit MSB executable, IBM S/390, version 1 (SYSV), for GNU/Linux 2.6.4, dynamically linked (uses shared libs), stripped
Barat Sahdzijeu
(185 rep)
Apr 3, 2015, 07:35 PM
• Last activity: Apr 7, 2015, 12:43 PM
1
votes
1
answers
1054
views
./a.out && echo $? only prints return value if return = 0
*echo $?* in the following scenario does not display the return value, i.e. 1. echo "int main() { return 1; }" > foo.c gcc foo.c && ./a.out && echo $? However, *echo $?* works when the program returns 0. Why is this? Note: If you do another *echo $?* after the code above, you get the desired output...
*echo $?* in the following scenario does not display the return value, i.e. 1.
echo "int main() { return 1; }" > foo.c
gcc foo.c && ./a.out && echo $?
However, *echo $?* works when the program returns 0. Why is this?
Note: If you do another *echo $?* after the code above, you get the desired output 1.
Harvinder
(395 rep)
Sep 15, 2014, 08:03 PM
• Last activity: Sep 16, 2014, 02:31 PM
4
votes
2
answers
162
views
what am i missing ... why run a S/390 platform with Fedora desktop?
I found this [link](http://s390.koji.fedoraproject.org/) for a group that is converting fedora RPM's to run on S/390 hardware. [Wikipedia](http://en.wikipedia.org/wiki/S390) tells me that the S/390 was made by IBM as a mainframe computer in the 1990's (and run out of service before 2000). So I have...
I found this [link](http://s390.koji.fedoraproject.org/) for a group that is converting fedora RPM's to run on S/390 hardware. [Wikipedia](http://en.wikipedia.org/wiki/S390) tells me that the S/390 was made by IBM as a mainframe computer in the 1990's (and run out of service before 2000). So I have two questions: Why would you run a "standard desktop" OS on a (deprecated) mainframe? and are there any practical applications for a 1990's mainframe nowadays? The site seems to be pretty active, so I feel I must be missing something in its purpose.
Hari Seldon
(797 rep)
Jun 13, 2011, 06:09 PM
• Last activity: Sep 22, 2012, 02:36 PM
Showing page 1 of 8 total questions