Sponsored Content
Top Forums Shell Programming and Scripting Creating an Interactive Bash Script to Analyze a PCAP Post 302795295 by Corona688 on Wednesday 17th of April 2013 02:01:13 PM
Old 04-17-2013
If it's in the current directory, they don't need to give the path. If it's not, they do need to give the path.
This User Gave Thanks to Corona688 For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

help needed with creating challenging bash script with creating directories

Hi, Can someone help me with creating a bash shell script. I need to create a script that gets a positive number n as an argument. The script must create n directories in the current directory with names like map_1, map_2 etcetera. Each directory must be contained within its predecessor. So... (7 Replies)
Discussion started by: I-1
7 Replies

2. Homework & Coursework Questions

How to write script that behaves both in interactive and non interactive mode

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... (8 Replies)
Discussion started by: rits
8 Replies

3. Shell Programming and Scripting

Execute interactive bash menu script in browser with PHP

I have an interactive menu script written in bash and I would like use PHP to open the interactive bash menu in a browser. Is this possible? Using the sytem() function in php runs the script but it's all garbled. Seems like maybe a terminal window needs to be opened in php first? ... (1 Reply)
Discussion started by: nck
1 Replies

4. Shell Programming and Scripting

Bash interactive installation script

Hi, for an exercise I need to write a script that will ask the user about each package in a (local) repository and install it or not according to the user's input. I am fairly new to scripting, so I did not get very far. Here is what I came up with. I really appreciate your help. ... (1 Reply)
Discussion started by: Softsmid
1 Replies

5. Shell Programming and Scripting

Script in bash wchich creating a new users...

Hi, I am a new on this forum but i like :) I need a script in bash which will be crating a new user with folder for websites. For example: I will run this program and he creating a new user(with my name) and folder whcich name like user and if i will localho/~user in browser, she show me files from... (1 Reply)
Discussion started by: puclavv
1 Replies

6. Shell Programming and Scripting

Non interactive su in bash script

Hi, I have a python gui which allow users entering the root password, then a bash script is called to run "su" with the root password on the background. I could find a way to run "su" with a password. How to run "su" in a bash script without password prompt? Thank you. (4 Replies)
Discussion started by: hce
4 Replies

7. Shell Programming and Scripting

Creating an Interactive Variable

Goal: I want run a Bash script that runs some conditional if statements on a specific file path that a user defines. Question: How do I build the prompt so the script asks the user to define the file path and then use that input as a variable? I'm guessing I will use a read builtin but I'm... (3 Replies)
Discussion started by: sudo
3 Replies

8. Shell Programming and Scripting

Passing arguments to interactive program through bash script, here document

Dear Users, I have installed a standalone program to do multiple sequence alignment which takes user parameters to run the program. I have multiple sequence files and want to automate this process through a bash script. I have tried to write a small bash code but its throwing errors. Kindly... (13 Replies)
Discussion started by: biochemist
13 Replies

9. Shell Programming and Scripting

Bash interactive Script Required

Dear All, Please help in creating a bash script to fetch records from multiple files the script should ask inputs of file type and column level input(at least 4 col of each file type) I have 4 sort of Files, A,B,C,D. file names are like A_0112.unl, A_01215.unl, A_0001.unl and same with B C... (3 Replies)
Discussion started by: Muhammad Ali
3 Replies

10. Shell Programming and Scripting

Creating a condition on a bash script

I wrote a code to find codons in a DNA string. The only problem I have is how do I make the code only work for a file with DNA. This means the file only has the characters a,c,g,t and no white space characters. (3 Replies)
Discussion started by: germany1517
3 Replies
RpcRegistry(3I) 					    InterViews Reference Manual 					   RpcRegistry(3I)

NAME
RpcRegistry - name space for finding RPC services SYNOPSIS
#include <Dispatch/rpcregistry.h> DESCRIPTION
RpcRegistry provides a name space for finding RPC services based on the use of NFS filesystems among a group of hosts. When an RPC service wishes to record its host name and port number, it will give the path of a file in which to store the information. When a client wants to find the RPC service's host name and port number, it will give the path of a file from which to read the information. Usually the path will be the name of a file in the current working directory since different hosts may have different absolute pathnames for the same file in a NFS filesystem. The RPC service's name space is the name space of the host's filesystem and the file's contents provides the informa- tion needed to open a connection to the RPC service. PUBLIC OPERATIONS
Each function is a static member function, which means a program can call it without having to instantiate an RpcRegistry object. Each function returns true if it succeeded or false if some error occurred. boolean record(const char* path, int port) Record the RPC service's host name and port number in the given file. If the file already exists, its previous contents will be lost. boolean erase(const char* path) Remove the file which stores the RPC service's host name and port number so that no more clients will be able to contact the RPC service. boolean find(const char* path, char*& hostname, int& port) Open the file which stores the RPC service's host name and port number. If the file does not exist, return failure silently. If the file does exist, read the RPC service's host name and port address from it. If ``hostname'' is nil upon entry, it will contain the address of a dynamically allocated string upon exit (which must be freed by the caller). SEE ALSO
RpcService(3I) InterViews 27 March 1991 RpcRegistry(3I)
All times are GMT -4. The time now is 05:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy