AIX versus Unix commands [closed] - unix

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 months ago.
Improve this question
I need all the Unix commands which are specific to AIX machines.
For e.g.: for Unix top is equivalent to topas in AIX.
I need the list of similar commands.
Where can I find it? Is there any documentation for this?

The IBM publib documentation for System p and AIX is stored here - publib is a vital resource if you're using any IBM product.
Look under AIX Documentation, Commands reference, Categorical(1). This will show you what the commands are meant to do from which you'll hopefully be able to work out the similar commands for other operating systems.
(1) Though, of course, things have moved since this answer was originally given (in 2009). You're looking for any resource that shows the man pages for AIX. Alternatively, assuming you have access to an actual AIX box, you should be able to enter (for example) man ls for a specific command, or man -k directory for a keyword search of commands related to directories.

The canonical reference for commands to perform tasks across various UNIX flavours is http://bhami.com/rosetta.html. If you know the command on a popular UNIX flavour like Linux, you can find the same thing on other less popular unices like HP-UX or AIX.
I've lost track of the number of times it's helped me.

First thing you need to know that UNIX is a common name for all Unix operating system. AIX, RHEL, FEDORA, SUSE, HP and so on, these are flavors of UNIX.
There are very little difference in command between these flavors. Logic is the same.

Related

How to make sure that a process on Gunicorn3 runs continuously? [closed]

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 months ago.
Improve this question
I have a flask app deployed on a Ubuntu server. I use Nginx, and Gunicorn3. I know from this StackOverflow post that one of the correct ways to have the app running continuously on the server is to use something like:
gunicorn3 app:application --workers 3 --bind=127.0.0.1:1001 --daemon
But to be completely safe, since there are many other processes running on that server, I would like to find a way to check whether this process IS indeed running, and if it is NOT running (for whatever reasons) then to start it again.
In addition to that question, to make the app working at reboot, I use the following cronjob:
#reboot bash ~/restart_processes.sh
Where the .sh file executes the command line given above for starting Gunicorn3. Is this good practice or is there a better way to achieve the same result?
Thank you!
Kind regards,
I always use to deploy it in production with supervisorctl + nginx. Check this tutorial . You can simply start, restart or stop with a command.

Run R online in Linux environment [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
Is there a way (perhaps a website) where one can run R online in a Linux environment?
motivation: I develop a few packages in R and oftentimes I need to run tests in Linux. However, I use a Windows OS and don't want to go through the hassle of learning Linux to install it locally.
A few suggestions:
Install docker to be able to have a 'virtual' Linux on your windows computer. That is essentially unlimited use on your own machine allowing you to learn and test.
You can also go to rstudio.cloud to run a few hours of R within RStudio (Cloud) per month for free. If you need more hours, you can purchase them. Possibly easiest immediate approach but with a usage cap.
Similarly Google Colab has an ability to run R in the notebooks, but it still somewhat hidden. One source with tips is this SO answer.
If you want to / can test in batch mode, then RHub is good. There is also a CRAN package rhub to interact with it. You need to create a token; this is documented.
Last but not least CI providers let you run on their systems. GitHub Actions is popular and supports many operating systems and variants. GitLab had something similar much earlier too. My r-ci setup aims to facilitate this without tieing you to a CI provider "forver". If you just want GitHub Actions, follow one of the many tutorials for it.
Both Rstudio cloud and rdrr.io/snippets use linux (according to Sys.info())

AWS EC2 Rstudio Server Error Occured During Transmission [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 7 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
After over a month, I have managed to piece together how to setup an AWS EC2 server. It has been very hard to upload files as there are very conservative (size) limits when done via the upload button in Rstudio Server. The error message when this is attempted is "Unexpected empty response from server".
I am not unique in this respect e.g. Trouble Uploading Large Files to RStudio using Louis Aslett's AMI on EC2
I have managed to use the following commands through putty and this has allowed me to upload files via either filezilla or winscp.
sudo chown -R ubuntu /home/rstudio
sudo chmod -R 755 /home/rstudio
Once I use these commands and log out, I can no longer access rstudio on the instances in future logins. I can relogin to my instances via my browser, but I get the error message:
Error Occurred During Transmission
Everything is fine other than once I use Putty I lose browser access to my instances.
I think this is because the command is change of ownership or similar. Should I be using a different command?
If I don't use a command I cannot connect between filezilla/winscp and the instance.
If anyone is thinking of posting a comment that this should be closed as it is a hardware issue, I don't have a problem with hardware. I am interested in the correct coded commands.
Thank you :)
Ok so eventually I realised what was going on here. The default home directory size for AWS is less than 8-10GB regardless of the size of your instance. As this as trying to upload to home then there was not enough room. An experienced linux user would not have fallen into this trap, but hopefully any other windows users new to this who come across this problem will see this. If you upload into a different drive on the instance then this can be solved. As the Louis Aslett Rstudio AMI is based in this 8-10GB space then you will have to set your working directory outside this, the home directory. Not intuitively apparent from Rstudio server interface. Whilst this is an advanced forum and this is a rookie error I am hoping no one deletes this question as I spent months on this and I think someone else will too.
Don't change the rights of /home/rstudio unless you know what you are doing, this may cause unexpected issues (and it actually does cause issues in your case). Instead, copy the files with filezilla or winscp to a temporary file (let say /tmp), then ssh to your instance with putty and move the file to the rstudio directory with sudo (e.g sudo mv /tmp/myfile /home/rstudio).

How do I access data from my personal computer on my AMI instance running RStudio server [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I have recently set up RStudio on an AMI ec2 instance using the process generously laid out by Louis Aslet from his website. But in an embarrassing turn of events I can't access the data I need because it resides on my personal computer. I am new to cloud computing and have 0 functional knowledge of Linux, but I do know SQL, and R well. Any help or suggestions would be greatly appreciated.
Have you tried the "Upload" button in the "Files" window of Rstudio?
use scp in terminal.
To put files from your remote server
Example: if the files are located locally in ~/mylocalfolder and you want to put them in /home/rstudio/mydata you would execute in terminal:
scp ~/mylocalfolder/*.csv ubuntu#<your address>:/home/rstudio/myData/
Note that if you want to access them under a different user, eg, rstudio, you need to change owners on the files. Use chown
To grab data from your remote server
Example: if the files are located on /home/rstudio/mydata and you want to put them locally in ~/mylocalfolder you would use
scp ubuntu#<your address>:/home/rstudio/myData*.Rda ~/mylocalfolder
I use the RStudio AMI all the time and what works for me is to use Dropbox. I can't remember exactly how I did it but I think I may have started the shell from within RStudio and installed Dropbox from the command line.
This link has a little more info:
http://www.louisaslett.com/RStudio_AMI/#comment-1041983219

Good book for Unix Internals [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
am very much interested in unix. Want to learn in and out.
Can you guys help me by listing some books which can make me a wizard?
Ultimately I want to become a unix programmer.
I am not a novice user in Unix.
You want system administration knowledge, or programming knowledge?
For programming:
Advanced Programming in the Unix Environment
Unix Network Programming
The Art of Unix Programming
For system administration:
Automating Linux and System Administration
Unix and Linux Administration Handbook
As other responders have noted, Advanced Programming in the Unix Environment (APUE) is indispensable.
Other books that you might want to consider (these have more of a Linux focus, but are a good way to become familiar with Unix internals):
Linux System Programming: well written, understandable introduction to the Linux API. Not as much depth as the others, but a good way to get the "lay of the land."
The Linux Programming Interface: A Linux and UNIX System Programming Handbook: more up to date than APUE, but focused on Linux.
Understanding the Linux Kernel (O'Reilly): learn about Unix programming from the perspective of an OS implementer, rather than a application developer.
check these out: UNIX Internals: The New Frontiers , The Design of the UNIX Operating System ,UNIX Systems Programming: Communication, Concurrency and Threads

Resources