I am creating a menu driven system and i want to show the last login times of different users, instead of using the 'last' command i wanted to know if there is anyway i could make a brief search tool where the user can input which user they are looking for and then the login times for that specific... (2 Replies)
Q. Write a script that behaves both in interactive and non interactive mode. When no arguments are supplied it picks up each C program from the directory and prints first 10 lines.
It then prompts for deletion of the file.
If user supplies arguments with the script , then it works on those files... (1 Reply)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I'm making my first program with perl and am supposed to allow the user to either use the current date or enter a... (0 Replies)
Hello all,
I have created a script that will remove the first two lines of one text file (body.txt) and then add the text from a different text file (header.txt) directly to the beginning of the freshly modified body.txt file. It is as follows:
#!/bin/bash
## This script will add a header... (2 Replies)
Hey guys,
I have some task from my office to lock user on the specified directory after the user logged on using ssh. And then run prompt program to fill the required information. Yeah, just like an ATM system.
My question:
How could I do those?? AFAIK I have to edit the ~./bashrc. But the... (1 Reply)
Hi,
I need to somehow pipe the password to a command and run some SQL, for example, something like echo $password | sqlplus -s system @query01.sql
To make it not so obvious, I decided to try out writing a small C program that basically just do echo $password. So now I just do x9.out | sqlplus... (8 Replies)
I am sorry for creating a new topic after my previous inquiry was closed, but I tried and tried and I do not know how to edit my previous post. This is not exactly any homework, this is one of 40 questions we were expected to prepare for one of the labs. I searched and read what I could and still... (4 Replies)
Hello, I want to start out by saying that I am fairly new to scripting and am looking for someone that can point me in the right direction.
Basically what I need is a way to run a interactive script that will prompt users with questions weather that be yes/no or a specific answer.. I want to be... (3 Replies)
Discussion started by: shoutcast
3 Replies
LEARN ABOUT MOJAVE
fish
fish(1) fish fish(1)NAME
fish - fish - the friendly interactive shell
fish - the friendly interactive shell
Synopsis
fish [-h] [-v] [-c command] [FILE [ARGUMENTS...]]
Description
A commandline shell written mainly with interactive use in mind. The full manual is available in html by using the help command from inside
fish.
o -c or --command=COMMANDS evaluate the specified commands instead of reading from the commandline
o -d or --debug-level=DEBUG_LEVEL specify the verbosity level of fish. A higher number means higher verbosity. The default level is 1.
o -h or --help display help and exit
o -i or --interactive specify that fish is to run in interactive mode
o -l or --login specify that fish is to run as a login shell
o -n or --no-execute do not execute any commands, only perform syntax checking
o -p or --profile=PROFILE_FILE when fish exits, output timing information on all executed commands to the specified file
o -v or --version display version and exit
The fish exit status is generally the exit status of the last foreground command. If fish is exiting because of a parse error, the exit
status is 127.
Version 1.23.1 Sun Jan 8 2012 fish(1)